<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ApplePayontheWeb",
  "identifier" : "/documentation/ApplePayontheWeb/ApplePayPayment/shippingContact",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Apple Pay on the Web"
    ],
    "preciseIdentifier" : "instp/ApplePayPayment/shippingContact"
  },
  "title" : "shippingContact"
}
-->

# shippingContact

The shipping contact selected by the user for this transaction.

```
ApplePayPaymentContact shippingContact;
```

## Discussion

The shipping contact information is populated if it is requested in [`ApplePayPaymentRequest`](/documentation/ApplePayontheWeb/ApplePayPaymentRequest). See [`ApplePayPaymentContact`](/documentation/ApplePayontheWeb/ApplePayPaymentContact) for the fields in [`shippingContact`](/documentation/ApplePayontheWeb/ApplePayPayment/shippingContact).

Shipping contact information can contain address, name, phone, and email fields. You determine which fields are present by setting the [`requiredShippingContactFields`](/documentation/ApplePayontheWeb/ApplePayPaymentRequest/requiredShippingContactFields) parameter in [`ApplePayPaymentRequest`](/documentation/ApplePayontheWeb/ApplePayPaymentRequest). Shipping contact details may differ based on the user’s geographic region.

Before the user authorizes the transaction with Touch ID, Face ID, or passcode, you receive redacted address information when [`onshippingcontactselected`](/documentation/ApplePayontheWeb/ApplePaySession/onshippingcontactselected) is triggered. Although the address is redacted for privacy, it includes sufficient information for you to compute taxes and shipping costs and refresh the corresponding values and total in the payment sheet.

Listing 1. Example of a redacted address in

```javascript
{
"locality": "Cupertino",
"country": "United States",
"postalCode": "95014",
"administrativeArea": "CA",
"familyName": "",
"countryCode": "",
"givenName": ""
}
```

After the user authorizes the transaction, [`shippingContact`](/documentation/ApplePayontheWeb/ApplePayPayment/shippingContact) contains the complete shipping contact data.

Listing 2. Example of  after the user authorizes the transaction

```javascript
{
"locality": "Cupertino",
"country": "United States",
"postalCode": "95014-2083",
"administrativeArea": "CA",
"emailAddress": "ravipatel@example.com",
"familyName": "Patel",
"addressLines": [
"1 Infinite Loop"
],
"givenName": "Ravi",
"countryCode": "US",
"phoneNumber": "(408) 555-5555"
}
```

> Note:
> Address information can come from a wide range of sources and may be in a different format than you expect. Always validate the information before you use it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)