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 constructors
PurchaseData(String jsonPurchaseData)
PurchaseData(String jsonPurchaseData, String signature)

Public methods


getOrderId

String getOrderId()

It returns the order ID for purchase.

Returns:

String

getPackageName

String getPackageName()

It returns the packageName of application, which initiates purchase.

Returns:

String

getProductId

String getProductId()

It returns the ID of purchased in-app products.

Returns:

String

getPurchaseTime

long getPurchaseTime()

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

Returns:

long

isAcknowledged

boolean isAcknowledged()

It shows whether purchase is acknowledged or not.

Returns:

boolean

getDeveloperPayload

String getDeveloperPayload()

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

Returns:

String

getPurchaseId

@Deprecated
String getPurchaseId()

It returns the ID uniquely identifying purchased data.

It is not used for API v6.

Returns:

String

See Also:

getPurchaseToken()

getPurchaseToken

String getPurchaseToken()

It returns the token uniquely identifying purchased data.

Returns:

String

getPurchaseState

int getPurchaseState()

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

Returns:

int

getRecurringState

int getRecurringState()

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

Returns:

int

getSignature

String getSignature()

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

Returns:

String

getOriginalJson

String getOriginalJson()

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

Returns:

String

Last updated