The GooglePlay bridge
Adapter identifier
Prevent double initialization
Adapter name
Has the adapter been successfully initialized
Used to retry failed commands
Set to true if receipts and products can be loaded in parallel
Static
_instanceStatic
trimReturns true on Android, the only platform supported by this adapter
List of purchase receipts.
Returns true if the platform supports the given functionality.
Find a purchaseToken for an owned product in the same group as the requested one.
The product identifier to request matching purchaseToken for.
Optional
productGroup: stringThe group of the product to request matching purchaseToken for.
A purchaseToken, undefined if none have been found.
Finish a transaction.
For non-consumables, this will acknowledge the purchase. For consumable, this will acknowledge and consume the purchase.
Prepare the list of SKUs sorted by type
Handle platform specific fields from receipt validation response.
Initializes a platform adapter.
Will resolve when initialization is complete.
Will fail with an IError
in case of an unrecoverable error.
In other case of a potentially recoverable error, the adapter will keep retrying to initialize forever.
Load product definitions from the platform.
Load the receipts
Called by the bridge when a purchase has been consumed
Called when the platform reports update for some purchases
Called when the platform reports some purchases
Initializes an order.
Prepare for receipt validation
Request a payment from the user
Optional
additionalData: CdvPurchase.AdditionalData
Adapter for a payment or in-app purchase platform