Class that represents a Purchase.


Public parameters

NameTypeDescription
developerPayloadStringString-based payload specified by the Developer when initiating this Purchase.
isAutoRenewingBooleanSpecifies 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.
itemTypeStringString value of the SkuType of the product purchased.
orderIdStringThe order UID (Unique Identifier) used internally in Aptoide.
originalJsonStringString-based value of the original JSON that contains detailed information about the Purchase.
packageNameStringPackage name of the application that originated this Purchase.
purchaseStateIntState of the Purchase.
purchaseTimeLongPurchase time in milliseconds.
skuStringID of the product purchased.
tokenStringThe UID (Unique Identifier) of the Purchase to filter by in the Aptoide Services.

purchaseState

Possible values of the Response:

ValueTitleDescription
0PurchasedPurchase has been successfully completed.
1CancelledPurchase has been cancelled.