PurchaseData

public class PurchaseData extends Object
java.lang.Object
    ↳ com.gaa.sdk.iap.PurchaseData

It shows the purchase data of in-app purchases (IAP).

Summary


Public methods


getOrderId

String getOrderId()

It returns the order ID for purchase.

getPackageName

String getPackageName()

It returns the packageName of application, which initiates purchase.

getProductId

String getProductId()

It returns the ID of purchased in-app products.

getPurchaseTime

long getPurchaseTime()

It returns the in-app purchase time in the unit of milliseconds.

isAcknowledged

boolean isAcknowledged()

It shows whether purchase is acknowledged or not.

getDeveloperPayload

String getDeveloperPayload()

It forwards the developer’s payload specified when acknowledging or consuming purchase.

getPurchaseId

@Deprecated
String getPurchaseId()

It returns the ID uniquely identifying purchased data.

It is not used for API v6.

getPurchaseToken

String getPurchaseToken()

It returns the token uniquely identifying purchased data.

getPurchaseState

int getPurchaseState()

It returns one of the PurchaseData.PurchaseState as a value indicating purchase status.

getRecurringState

int getRecurringState()

It returns one of the PurchaseData.RecurringState as a value indicating Monthly auto-renewal product status.

getSignature

String getSignature()

It returns a string containing the signature of the purchase data signed with the developer’s private key.

getOriginalJson

String getOriginalJson()

It returns a string in json format containing purchase data details.

Last updated