PurchaseData
public class PurchaseData extends Object java.lang.Object ↳ com.gaa.sdk.iap.PurchaseData
Indicates the purchase data of in-app's purchases.
Summary
Nested classes
@interface
@interface
@interface
Public constructors
PurchaseData(String jsonPurchaseData)
PurchaseData(String jsonPurchaseData, String signature)
Public methods
getOrderId
String getOrderId() Restores the order ID of purchases.
Returns:
String
getPackageName
String getPackageName() Restores the package name of the application that started to purchase.
Returns:
String
getProductId
String getProductId() Restores the ID of purchased in-app products.
Returns:
String
getPurchaseTime
long getPurchaseTime() Restores the purchased time of in-app products to unit in seconds.
Returns:
long
isAcknowledged
boolean isAcknowledged() Indicates whether the purchase is acknowledged.
Returns:
boolean
getDeveloperPayload
String getDeveloperPayload() Delivers the payload of the developer that was specified when the purchase was acknowledged or consumed.
Returns:
String
getPurchaseId
@DeprecatedString getPurchaseId() Restores the ID that distinguishes the purchased data uniquely (not used in API v6).
Returns:
String
See Also:
getPurchaseToken()
getPurchaseToken
String getPurchaseToken() Restores the token that distinguishes the purchased data uniquely.
Returns:
String
getPurchaseState
int getPurchaseState() Restores the one of PurchaseData.PurchaseState as indicating the value of the purchased state.
Returns:
int
getRecurringState
int getRecurringState() Restores the one of PurchaseData.RecurringState as indicating the value of the monthly auto-renewal state.
Returns:
int
getQuantity
int getQuantity() Restores the quantity of the products.
Returns:
int
getSignature
String getSignature() Restores the string which includes the signature of the purchased data signed by the personal key of the developer.
Returns:
String
getOriginalJson
String getOriginalJson() Restores the JSON formatted string which includes detailed information of the purchased data.
Returns:
String
Last updated