ApplePayErrorContactField
Names of the fields in the shipping or billing contact information, used to locate errors in the payment sheet.
Declaration
enum ApplePayErrorContactFieldOverview
When shipping or billing contact information has an error, you use the error code values of either "shippingContactInvalid" or "billingContactInvalid" to indicate which one has the error. You use the contact field to indicate the exact field with the error. The corresponding field in the shipping or billing section of the payment sheet is highlighted.
Note that the remaining error codes, "addressUnserviceable" and "unknown", do not require contact fields.
Use contact field values in the contactField property of an ApplePayError when you return errors in the completion functions, as shown in the following table.
Contact field values are available in all versions of the API except as stated in the table.
Contact Field Value | Completion methods that support | Completion methods that support |
|---|---|---|
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
|