Optional amountAmount paid by the user, if known, in micro units. Divide by 1,000,000 for value.
Optional currencyCurrency used to pay for the transaction, if known.
Optional expirationTime when the subscription is set to expire following this transaction
Optional isTrue when the transaction has been acknowledged to the platform.
Optional isTrue when the transaction was consumed.
Optional isTrue when the transaction is still pending payment.
Optional lastTime a subscription was last renewed
Platform this transaction was created on
Purchased products
Product identifier
Optional offerOffer identifier, if known
Optional purchaseTime the purchase was made.
For subscriptions this is equal to the date of the first transaction. Note that it might be undefined for deleted transactions (google for instance don't provide any info in that case).
Optional purchaseIdentifier for the purchase this transaction is a part of.
Optional quantityQuantity of items purchased in a single transaction.
For consumable products, this value represents the number of items purchased. For non-consumable products and subscriptions, this value is always 1.
This is only supported on Android (Google Play) platform when using the multi-quantity purchase feature. On other platforms, the quantity is always 1.
Optional renewalIs the subscription set to renew.
Optional renewalTime when the renewal intent was changed
State this transaction is in
Transaction identifier.
Return the receipt this transaction is part of.
Finish a transaction.
When the application has delivered the product, it should finalizes the order. Only after that, money will be transferred to your account. This method ensures that no customers is charged for a product that couldn't be delivered.
store.when()
.approved(transaction => transaction.verify())
.verified(receipt => receipt.finish())
Refresh the value in the transaction based on the native purchase update
Optional fromConstructor: booleanVerify a transaction.
This will trigger a call to the receipt validation service for the attached receipt. Once the receipt has been verified, you can finish the transaction.
store.when()
.approved(transaction => transaction.verify())
.verified(receipt => receipt.finish())
Static to
Transaction as reported by the device
See