Instance Property


A string that uniquely identifies a successful payment transaction.


var transactionIdentifier: String? { get }


The contents of this property are undefined except when transactionState is set to SKPaymentTransactionState.purchased or SKPaymentTransactionState.restored. The transactionIdentifier is a string that uniquely identifies an interaction between the user's device and the App Store, such as a purchase or restore.

This value has the same format as the transaction’s transaction_id in the receipt; however, the values may not be the same.

See Also

Getting Transaction Information

var payment: SKPayment

The payment for the transaction.

var transactionDate: Date?

The date the transaction was added to the App Store’s payment queue.

var original: SKPaymentTransaction?

The transaction that was restored by the App Store.

var error: Error?

An object describing the error that occurred while processing the transaction.