In App Purchase - Android Integration
Initiate a Purchase
window.WTN.inAppPurchase({
productId: "Product Id of IAP",
productType: "INAPP",
isConsumable: true,
accountToken: "11112222-3333-4444-5555-666677778888",
callback: function (data) {
if (data.isSuccess) {
// Send data.receiptData to your server to verify the purchase.
console.log(data.receiptData);
}
},
});import { inAppPurchase } from "webtonative/InAppPurchase";
inAppPurchase({
productId: "Product Id of IAP",
productType: "INAPP",
isConsumable: true,
accountToken: "11112222-3333-4444-5555-666677778888",
callback: (data) => {
if (data.isSuccess) {
// Send data.receiptData to your server to verify the purchase.
console.log(data.receiptData);
}
},
});Key
Type
Required
Description

Key
Type
Description
Query Purchases
Key
Type
Required
Description
Key
Type
Description
Official References
Last updated