-
Notifications
You must be signed in to change notification settings - Fork 3
global.API
-
The success callback for
buyandsubscribeName Type Description purchasePurchase the data of purchase
- Source:
-
This is the callback for
consumeProductName Type Description purchasePurchase - Source:
-
All the failure callbacks have the same signature as this.
Name Type Description errorObject the information about the error
Name Type Description errorCodeint one of the error codes defined with ERR_*
msgstring a textual message intended for developer in order to make debuging easier
- Source:
-
The success callback for
getLoadedProducts.Name Type Description productsArray.<ProductDetails> - Source:
-
This is the success callback for
getPurchaseDetails. This will return the purchase data containing the verification payload.Name Type Description purchasePurchase - Source:
-
The success callback for
getPurchasesName Type Description purchaseListArray.<Purchase> - Source:
-
The success callback for
init.Name Type Description productsArray.<ProductDetails> - Source:
-
This is the success callback for
loadProductDetails. This will be called when process is successfully finished and will receive a list of valid and loaded products.Invalid products will not be on this list.
Name Type Description productsArray.<ProductDetails> - Source:
-
- Source:
Name Type Description idstring the product id
typestring type of product, possible values: inapp, subscription
pricestring the formatted localized price
priceMicrosint the price in micro amount (2$ ~> 2000000)
currencyCodestring the currency code used for localized price
titlestring humanreadable title of product
descriptionstring description of product
-
- Source:
Name Type Description idstring populated with orderId (when on PlayStore) or transactionIdentifier (when on iTunes)
originalIdstring populated with
originalTransaction.transactionIdentifieravailable only on iOS and only for restored transactionsproductIdstring the id of the bought product
expirationDatedate the date of expiration for this purchase, only if the product is of subscription type and only as long as this is not past.
verificationPayloadstring this is populated with
purchaseTokenwhen on PlayStore and with application'sreceiptwhen on iTunes. Only set when this data is returned to buy or subscribe success callback. -
The success callback for
restore. This is only available on iOS.Name Type Description purchasesArray.<Purchase> the data of purchase
- Source:
Generated with wicked.
- Installation
- [Stores setup](Stores setup)
- [Purchase verification](Purchase verification)
- [Testing plugin](Automatic tests)
- [API documentation](API documentation)
- Debugging
- Roadmap
- [Compatibility issues](Compatibility issues)