Instance Property


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


var error: Error? { get }


The error property is undefined except when transactionState is set to SKPaymentTransactionState.failed. Your application can read the error property to determine why the transaction failed. For a list of error constants, see SKErrorDomain in StoreKit Constants.

See Also

Getting Transaction Information

var payment: SKPayment

The payment for the transaction.

var transactionIdentifier: String?

A string that uniquely identifies a successful payment 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.