Payment
Payment#
Each store needs its own configuration before use. Refer to: Store-specific configuration. In addition, the error "Product ID not found" will appear if there is no in-app item registered on Dashboard
> Purchase
> In-app Purchase
.
_10NBaseSDK.NBase.purchase(Store.google.ToString(), [productId], [metadata], [options], (purchase, error) =>_10{_10 if (error != null)_10 {_10 NBaseSDK.NBase.showToast(error.Message.ToString());_10 return;_10 }_10 // Payment succeeded_10});
Key | Description | Required |
---|---|---|
ProductId | Product ID (Dashboard > Purchase > In-app Purchase) | O |
Metadata | Metadata | X |
Options | Payment options | X |
Key | Description |
---|---|
Store.google.ToString() | Google Play Store |
Store.one.ToString() | One Store |
Store.galaxy.toString() | Galaxy Store |
Store.amazon.toString() | Amazon Store |
Store.huawei.toString() | Huawei Store |