Type Table Event storeTransaction Revision Release 2024.3703 Keywords Google, IAP, in-app purchases, storeTransaction, transaction See also storeTransaction store.*
This table contains the following
state
— A string indicating the state of 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
receipt
— A INAPP_PURCHASE_DATA
returned by Google.
identifier
— The unique string identifier for the transaction.
productIdentifier
— A string representing the product identifier associated with the transaction.
date
— A string representing the date when the transaction occurred, represented in Unix epoch milliseconds.
packageName
— A string representing the application package from which the purchase originated.
token
— A token (string) that uniquely identifies a purchase for a given item and user pair.
originalJson
— A JSON-formatted string representation of the transaction.
signature
— A digital signature string that can be used to verify the purchase. This is the INAPP_DATA_SIGNATURE
returned by Google.
isError
— Boolean value indicating whether an error occurred. If this is true
, errorType
and errorString
will be strings stating the reason.
errorType
— A string representing the type of error that occurred if isError
is true
.
errorString
— A more descriptive error message (string) if isError
is true
.