Type Table Event storeTransaction Revision Release 2024.3703 Keywords Samsung, IAP, in-app purchases, storeTransaction, transaction See also storeTransaction store.* Gotchas
Samsung recommends using a server for using receipt rest api Samsung IAP Server Guide
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, "consumed"
for a consumed purchase, "restoreCompleted"
for when a restore is completed, or "failed"
in case of an error.
identifier
— The unique string identifier for the transaction.
productIdentifier
— A string representing the product identifier associated with the transaction.
purchaseType
— Type (string) which is either "item"
or "subscription"
.
isConsumable
— A (boolean) whether or not the in-app item is consumable.
statusType
— Type (string) which is used for state "consumed"
and returns either "success"
, "invalidPurchaseID"
, "failedOrder"
, "nonConsumableItem"
, "unauthorizedUser"
, "serviceError"
status
— Status message (string) which is used for state "consumed"
date
— A string representing the date when the transaction occurred, represented in "YYYY-MM-DD HH:mm:ss"
format.
subscriptionEndDate
— A string representing the date when the given subscription ends, represented in "YYYY-MM-DD HH:mm:ss"
format.
originalJson
— A JSON-formatted string representation of the transaction.
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
.