<!--
{
  "availability" : [
    "iOS: 10.0.0 - 11.0.0",
    "iPadOS: 10.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.0.0 - 4.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentAuthorizationControllerDelegate/paymentAuthorizationController(_:didSelectShippingContact:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(pl)PKPaymentAuthorizationControllerDelegate(im)paymentAuthorizationController:didSelectShippingContact:completion:"
  },
  "title" : "paymentAuthorizationController(_:didSelectShippingContact:completion:)"
}
-->

# paymentAuthorizationController(_:didSelectShippingContact:completion:)

Tells the delegate that the user selected a shipping address.

```
optional func paymentAuthorizationController(_ controller: PKPaymentAuthorizationController, didSelectShippingContact contact: PKContact, completion: @escaping @Sendable (PKPaymentAuthorizationStatus, [PKShippingMethod], [PKPaymentSummaryItem]) -> Void)
```

## Parameters

`controller`

The payment authorization controller.

`contact`

A contact object representing the new shipping address. To maintain privacy, the shipping information is anonymized. For example, in the United States it only includes the city, state, and zip code. This provides enough information to calculate shipping costs, without revealing sensitive information until the user actually approves the purchase.

`completion`

The completion block to call with the updated payment summary items and shipping methods.

    This block takes the following parameters:

- `status`: The authorization status for the payment. For values, see [`PKPaymentAuthorizationControllerDelegate`](/documentation/PassKit/PKPaymentAuthorizationControllerDelegate).
- `shippingMethods`: An array of [`PKShippingMethod`](/documentation/PassKit/PKShippingMethod) objects that replaces the shipping methods for the current payment request.
- `summaryItems`: An array of [`PKPaymentSummaryItem`](/documentation/PassKit/PKPaymentSummaryItem) objects that replaces the summary items for the current payment request.

## Discussion

Use this method to update the available shipping methods and, if a shipping method has been selected, the current shipping cost.

When this method is called, you create a new array of valid [`PKShippingMethod`](/documentation/PassKit/PKShippingMethod) objects for the specified address. You also create an array of [`PKPaymentSummaryItem`](/documentation/PassKit/PKPaymentSummaryItem) objects that represent the updated cost. The summary items should include the shipping cost if a valid shipping method has been selected. For more information on updating these values, see the [`PKPaymentRequest`](/documentation/PassKit/PKPaymentRequest) class’s [`shippingMethods`](/documentation/PassKit/PKPaymentRequest/shippingMethods) and [`paymentSummaryItems`](/documentation/PassKit/PKPaymentRequest/paymentSummaryItems) properties.

> Note:
> The delegate receives no further callbacks except ``doc://com.apple.passkit/documentation/PassKit/PKPaymentAuthorizationControllerDelegate/paymentAuthorizationControllerDidFinish(_:)`` until it has invoked the completion block.

---

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)