<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPaymentAuthorizationViewControllerDelegate/paymentAuthorizationViewController(_:didSelect:handler:)-5r0i7",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(pl)PKPaymentAuthorizationViewControllerDelegate(im)paymentAuthorizationViewController:didSelectShippingMethod:handler:"
  },
  "title" : "paymentAuthorizationViewController(_:didSelect:handler:)"
}
-->

# paymentAuthorizationViewController(_:didSelect:handler:)

Tells the delegate that the user selected a shipping method, and asks for an updated payment request.

```
optional func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didSelect shippingMethod: PKShippingMethod, handler completion: @escaping @Sendable (PKPaymentRequestShippingMethodUpdate) -> Void)
```

```
optional func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didSelect shippingMethod: PKShippingMethod) async -> PKPaymentRequestShippingMethodUpdate
```

## Parameters

`controller`

The payment authorization view controller.

`shippingMethod`

The selected shipping method. This parameter contains one of the shipping methods specified in the payment request.

`completion`

The completion handler to call with the updated payment summary items.

## Discussion

Use this method to update shipping costs based on the shipping address the user selected in a call to [`paymentAuthorizationViewController(_:didSelectShippingContact:handler:)`](/documentation/PassKit/PKPaymentAuthorizationViewControllerDelegate/paymentAuthorizationViewController(_:didSelectShippingContact:handler:)). If the user didn’t select an address, use the prepopulated address of the payment request.

When the system calls this method, you create a new array of [`PKPaymentSummaryItem`](/documentation/PassKit/PKPaymentSummaryItem) objects that represent the updated cost including shipping. For more information on creating summary items, see the [`PKPaymentRequest`](/documentation/PassKit/PKPaymentRequest) class’s [`paymentSummaryItems`](/documentation/PassKit/PKPaymentRequest/paymentSummaryItems) property.

---

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)