Instance Property

requiredShippingContactFields

The 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. You can also use requiredShippingContactFields to request only the customer's name, if you do not need the address.

An example of requesting fields for a shipping contact are shown in Listing 1:

"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.

See Also

Requested Billing and Shipping Contact Information

requiredBillingContactFields

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

ApplePayContactField

Field names used for requesting contact information in a payment request.