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
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())
Verify 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())
Transaction as reported by the device
See