States

Can Make Payments

Returns yes/no if the user is able to start a purchase.


Active Transactions

A list of all unfinished transactions.

Transaction Object

Represents a single in-app purchase transaction.

transactionIdentifier
A unique identifier for this transaction.

transactionDate
The date the transaction was added to the payment queue (ISO string).

originalTransactionIdentifier
The identifier of the original transaction. Used for restored purchases.

transactionState
The current state of the transaction. Can be purchasing, purchased, failed, restored, or deferred.

errorCode
A numeric error code if the transaction failed.

errorMessage
A message describing the error, if one occurred.

payment
An object containing details about the payment.

Payment Object

productIdentifier
The ID of the product being purchased.

quantity
The number of items purchased.

applicationUsername
An optional string used to associate the transaction with a user account in your system.

paymentDiscount
An object containing promotional offer details, if applicable.

Payment Discount Object

identifier
The discount offer identifier.

keyIdentifier
The identifier of the key used to sign the offer.

nonce
A unique value used to prevent replay attacks.

signature
The cryptographic signature for the promotional offer.

timestamp
The time the discount was generated (in milliseconds since epoch).


Error

Error output, if any.


Receipt URL

The user's receipt URL, generated with the "Get Receipt URL" action.