Skip to main content

AvailablePurchase

PropertyTypeiOSAndComment
productIdstringโœ“โœ“The product ID for the product.
transactionReceiptstringโœ“โœ“iOS: The receipt. Android: Stringified JSON of the original purchase object.
transactionIdstringโœ“โœ“A unique order identifier for the transaction.
transactionDatenumberโœ“โœ“The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
originalTransactionDateIOSnumberโœ“For a transaction that restores a previous transaction, the date of the original transaction.
originalTransactionIdentifierIOSstringโœ“For a transaction that restores a previous transaction, the transaction identifier of the original transaction.
purchaseTokenstringโœ“A token that uniquely identifies a purchase for a given item and user pair.
autoRenewingAndroidbooleanโœ“Indicates whether the subscription renews automatically. If true, the subscription is active, and will automatically renew on the next billing date. Otherwise, indicates that the user has canceled the subscription.
dataAndroidstringโœ“Original json for purchase data.
signatureAndroidstringโœ“The signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme.
isAcknowledgedAndroidbooleanโœ“Checking if purchase has been acknowledged.
purchaseStateAndroidnumberโœ“Indicating purchase state.
packageNameAndroidstringโœ“Get package name.
developerPayloadAndroidstringโœ“https://developer.android.com/google/play/billing/developer-payload
obfuscatedAccountIdAndroidstringโœ“https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountidBuilder#setobfuscatedaccountId
obfuscatedProfileIdAndroidstringโœ“https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid

You need to test with one sandbox account, because the account holds previous purchase history.