Type Table Event storeTransaction Revision Release 2022.3683 Keywords Amazon, IAP, in-app purchases, storeTransaction, transaction See also storeTransaction store.*
This table contains the following
state
— A string indicating the state of the transaction. This will be "purchased"
in the case of a normal or restored purchase, "cancelled"
for a cancelled purchase, or "failed"
in case of an error.
receipt
— A
identifier
— The unique string identifier for the transaction.
productIdentifier
— A string representing the product identifier associated with the transaction.
type
— A string representing the type of purchase. Possible values include "CONSUMABLE"
, "ENTITLEMENT"
, or "SUBSCRIPTION"
.
date
— A string representing the date when the transaction occurred, represented in Unix epoch milliseconds.
cancelDate
— A string representing the date when the transaction was cancelled, represented in Unix epoch milliseconds. If the transaction was not cancelled, this will be nil
.
subscriptionStartDate
— For a date
and indicates the date when the subscription started, represented in Unix epoch milliseconds.
subscriptionEndDate
— For a cancelDate
and indicates the date when the subscription ends, represented in Unix epoch milliseconds.
userId
— A string value indicating the ID of the currently
marketplace
— A "US"
for the United States or "GB"
for the United Kingdom.
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
.