Purchase Class
Item Index
Methods
Properties
Methods
consume
()
Void
Consume the purchase. This will result in this entry being removed from all subsequent responses to getPurchases and allow re-purchase of this product.
The result of this operation is reported via the purchaseConsumed event.
Returns:
Properties
applicationPayload
String
read-only
A developer-specified string that contains supplemental information about an order.
orderNumber
String
read-only
A unique order identifier for the transaction. This corresponds to the Google Wallet Order ID.
purchaseToken
String
read-only
A token that uniquely identifies a purchase for a given item and user pair.
quantity
Number
read-only
Number of products purchased. This will always be 1 on Android. Present only for iOS compatibility.
signature
String
read-only
String containing the signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme.
SKU
String
read-only
The item's product identifier. Every item has a product ID, which you must specify in the application's product list on the Google Play Developer Console.
state
Number
read-only
The state of the purchase. Possible values are PURCHASE_STATE_PURCHASED, PURCHASE_STATE_CANCELED, and PURCHASE_STATE_REFUNDED.
time
Date
read-only
Time of purchase.