Reports the status code and errors that you return when a payment is authorized.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
- PassKit (Apple Pay and Wallet)
If the Apple Pay sheet contains errors, you provide a
PKPaymentAuthorizationStatus.failure status to
PKPaymentAuthorizationResult, and include the errors in the errors array. If there are no errors, you provide a
PKPaymentAuthorizationStatus.success status and leave the error array empty.
Listing 1 shows a failure result with two errors in the postal code and street fields.
Initializing a Payment Authorization Result
Payment Authorization Status and Errors
Payment Sheet Interactions and Authorization
Represents the result of authorizing a payment request and contains payment information, encrypted in the payment token.