-
Notifications
You must be signed in to change notification settings - Fork 3
global.API
-
Error codes base.
all the codes bellow should be kept synchronized between: InAppPurchase.m InAppBillingPlugin.java android_iab.js ios_iab.js
Be carefull assiging new codes, these are meant to express the REASON of the error as exact as possible!
- Source:
-
Name Type Description purchase
purchase the data of purchase
- Source:
-
The success callback for
restore
. This is only available on iOS.Name Type Description purchase
purchase the data of purchase
- Source:
-
Name Type Description purchase
purchase the data of purchase
- Source:
-
This is the callback for
module:InAppBilling#consumePurchase
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
nativeEvent
Object additional information mainly intended for debug process which will not be present if the source of error is not IAB
Name Type Description IabResponse
int response code coming from IabHelper
IabMessage
string message text coming from IabHelper
- 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
nativeEvent
Object additional information mainly intended for debug process which will not be present if the source of error is not IAB
Name Type Description IabResponse
int response code coming from IabHelper
IabMessage
string message text coming from IabHelper
- Source:
-
The success callback for
getAvailableProducts
.Name Type Description productsList
Array.<ProductDetails> - Source:
-
This is the success callback for
getProductDetails
. 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:
-
This is the success callback for
getProductDetails
.Name Type Description product
productDetails - Source:
-
The success callback for
getPurchases
Name Type Description purchaseList
Array.<purchase> - Source:
-
The success callback for
getPurchases
Name Type Description purchaseList
Array.<purchase> - Source:
-
The success callback for
init
.- Source:
-
The success callback for
init
.Name Type Description result
string the result passed by cordova, should be always 'OK'
- 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:
-
- Object
- Source:
-
- Object
- 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)