In-App Products Module for Android

API Docs for: 1.0.2
Show:

Purchase Class

Module: Readme

Methods

consume

() Void

Available since 1.0.0

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:

Void:

Properties

applicationPayload

String read-only

Available since 1.0.0

A developer-specified string that contains supplemental information about an order.

orderNumber

String read-only

Available since 1.0.0

A unique order identifier for the transaction. This corresponds to the Google Wallet Order ID.

purchaseToken

String read-only

Available since 1.0.0

A token that uniquely identifies a purchase for a given item and user pair.

quantity

Number read-only

Available since 1.0.0

Number of products purchased. This will always be 1 on Android. Present only for iOS compatibility.

signature

String read-only

Available since 1.0.0

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

Available since 1.0.0

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

Available since 1.0.0

The state of the purchase. Possible values are PURCHASE_STATE_PURCHASED, PURCHASE_STATE_CANCELED, and PURCHASE_STATE_REFUNDED.

time

Date read-only

Available since 1.0.0

Time of purchase.