An error code that you provide to indicate problems with address or contact information on an Apple Pay sheet.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
- PassKit (Apple Pay and Wallet)
The user must resolve any errors that you report on the Apple Pay sheet before they're able to authorize the transaction. You return any errors in
You can build your own payment error (
NSError), or use one of the following convenience methods from
PKPaymentRequest to build it for you.
For an error with contact information:
For a shipping address that is unserviceable:
For an error with the billing address:
For an error with the shipping address:
The code in Listing 1 shows how to create payment errors directly and using a convenience method.