Home

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.


_10
NBaseSDK.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
});

KeyDescriptionRequired
ProductIdProduct ID (Dashboard > Purchase > In-app Purchase)O
MetadataMetadataX
OptionsPayment optionsX
KeyDescription
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