Purchase

com.aptoide.sdk.billing.Purchase

Class that represents a Purchase.


Public parameters

NameTypeDescription
accountIdentifiersAccountIdentifiersAccount Identifiers that were provided when creating the Purchase request.
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, and access to content will end on the next billing date unless the user opts to restore automatic renewal or completes a manual renewal.
orderIdStringThe order UID (Unique Identifier) used internally in Aptoide.
originalJsonStringString based value of the original JSON value that contains detailed information about the Purchase.
packageNameStringPackage name of the application that originated this Purchase.
productsListList containing the productId of all the Products Purchased.
purchaseStateIntState of the Purchase.
purchaseTimeLongPurchase time in millies.
purchaseTokenStringThe UID (Unique Identifier) of the Purchase to filter by in the Aptoide Services.
signatureStringString based value containing the signature of the Purchase data that was signed with the private key of the developer. SHA1withRSA algorithm scheme is used.

purchaseState

Possible values of the Response:

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