Purchase
Class that represents a Purchase.
Public parameters
Name | Type | Description |
---|---|---|
itemType | String | String value of the SkuType of product purchased. |
packageName | String | Package name of the application that originated this Purchase. |
sku | String | ID of the product purchased. |
purchaseTime | Long | Purchase time in millies. |
purchaseState | Int | State of the Purchase. |
developerPayload | String | String based payload specified by the Developer when initiating this Purchase. |
token | String | The UID (Unique Identifier) of the Purchase to filter by in the Aptoide Services. |
orderId | String | The order UID (Unique Identifier) used internally in Aptoide. |
originalJson | String | String based value of the original JSON value that contains detailed information about the Purchase. |
signature | ByteArray | String based value containing the signature of the Purchase data that was signed with the private key of the developer. SHA1withRSA algorithm scheme is used. |
isAutoRenewing | Boolean | Specifies if the subscription will renew automatically. If set to true, the subscription remains active and is scheduled to renew on the upcoming billing date. If set to false, the subscription has been canceled, and access to content will end on the next billing date unless the user opts to restore automatic renewal or completes a manual renewal. |
purchaseState
Possible values of the Response:
Value | Title | Description |
---|---|---|
0 | CONSUMED | Purchase has been successfully consumed. |
1 | PENDING | Purchase is still pending consume. |
2 | ACKNOWLEDGED | Purchase has been successfully acknowledged. |
Updated 15 days ago