The SKPaymentTransaction class defines objects residing in the payment queue. A payment transaction is created whenever a payment is added to the payment queue. Transactions are delivered to your application when the App Store has finished processing the payment. Completed transactions provide a receipt and transaction identifier that your application can use to save a permanent record of the processed payment.


Getting Information About the Transaction

var error: Error?

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

var payment: SKPayment

The payment for the transaction.

var transactionState: SKPaymentTransactionState

The current state of 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.

Getting Information about the Transaction’s Downloadable Content

var downloads: [SKDownload]

An array of download objects representing the downloadable content associated with the transaction.

Restored Transactions

var original: SKPaymentTransaction?

The transaction that was restored by the App Store.


enum SKPaymentTransactionState

The state of a transaction.


Inherits From

Conforms To