An error type that you create to indicate problems with address or contact information on an Apple Pay sheet.
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
- Xcode 9.0+
Kit (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
For an error with contact information, use
Contact Invalid Error(with Contact Field: localized Description:)
For a shipping address that is unserviceable, use
Shipping Address Unserviceable Error(with Localized Description:)
For an error with the billing address, use
Billing Address Invalid Error(with Key: localized Description:)
For an error with the shipping address, use
Shipping Address Invalid Error(with Key: localized Description:)
The example code in Listing 1 shows how to create an error directly and how to create one using a convenience method.