-
Notifications
You must be signed in to change notification settings - Fork 3
global.API
-
The success callback for
buy
andsubscribe
Name Type Description purchase
Purchase the data of purchase
- Source:
-
This is the callback for
consumeProduct
Name Type Description purchase
Purchase - Source:
-
All the failure callbacks have the same signature as this.
Name Type Description error
Object the information about the error
Name Type Description errorCode
int one of the error codes defined with ERR_*
msg
string a textual message intended for developer in order to make debuging easier
- Source:
-
The success callback for
getLoadedProducts
.Name Type Description products
Array.<ProductDetails> - Source:
-
This is the success callback for
getPurchaseDetails
. This will return the purchase data containing the verification payload.Name Type Description purchase
Purchase - Source:
-
The success callback for
getPurchases
Name Type Description purchaseList
Array.<Purchase> - Source:
-
The success callback for
init
.Name Type Description products
Array.<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 products
Array.<ProductDetails> - Source:
-
- Source:
Name Type Description id
string the product id
type
string type of product, possible values: inapp, subscription
price
string the formatted localized price
priceMicros
int the price in micro amount (2$ ~> 2000000)
currencyCode
string the currency code used for localized price
title
string humanreadable title of product
description
string description of product
-
- Source:
Name Type Description id
string populated with orderId (when on PlayStore) or transactionIdentifier (when on iTunes)
originalId
string populated with
originalTransaction.transactionIdentifier
available only on iOS and only for restored transactionsproductId
string the id of the bought product
expirationDate
date the date of expiration for this purchase, only if the product is of subscription type and only as long as this is not past.
verificationPayload
string this is populated with
purchaseToken
when on PlayStore and with application'sreceipt
when 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 purchases
Array.<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)