Contents

error

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

Declaration

var error: (any Error)? { get }

Discussion

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

Related Documentation

  • In-App Purchase Programming Guide

Getting Transaction Information