event.transaction

Type Table
Event storeTransaction
Revision Release 2024.3703
Keywords Google, IAP, in-app purchases, storeTransaction, transaction
See also storeTransaction
store.*

Overview

This table contains the following read-only properties pertaining to the transaction:

"purchased" this will be in the case of a normal or restored purchase
"pending" for pending purchases, when Play Store is awaiting for user to make a payment in physical store. Once purchase is made, another event would be generated with the "purchased" state.
"cancelled" for a purchase cancelled by user. Note, this event would not contain specifics about which purchase was cancelled
"consumed" for a consumed purchase
"finished" when purchase was acknowledged successfully
"failed" in case of an error. Note, this event probably would not contain specifics about which purchase failed, only the error message and the code
"restoreCompleted" once all purchase(s) are restored, after the restore() call
"unknown" this should not happen