Instance Property

requiredShippingContactFields

The fields of shipping information that you require from the user to fulfill the order.

Declaration

sequence < ApplePayContactField > requiredShippingContactFields;

Discussion

Use requiredShippingContactFields to request the user's address and other contact information that you require to fulfill the order.

You will receive the customer's name when you request postalAddress. If you don't need the customer's address, you can request the name contact field directly.

The following listing is an example of requesting fields for a shipping contact:

"requiredShippingContactFields": [
    "postalAddress",
    "name",
    "phoneticName",
    "phone",
    "email"
]

The source of the information may be the user's "My card" in Contacts, Wallet settings, or may be entered into the payment sheet by the user, either directly or through Contacts.

The requiredShippingContactFields for ApplePayRequest is available in Apple Pay version 6.

See Also

Requested Billing and Shipping Contact Information

requiredBillingContactFields

The fields of billing information that you require from the user to process the transaction.