<!--
{
  "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(_:didSelectShippingMethod: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:didSelectShippingMethod:completion:"
  },
  "title" : "paymentAuthorizationController(_:didSelectShippingMethod:completion:)"
}
-->

# paymentAuthorizationController(_:didSelectShippingMethod:completion:)

Tells the delegate that the user selected a shipping method.

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

## Parameters

`controller`

The payment authorization controller.

`shippingMethod`

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

`completion`

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

    This block takes the following parameters:

- `status`: The authorization status for the payment. For values, see [`paymentAuthorizationControllerDidFinish(_:)`](/documentation/PassKit/PKPaymentAuthorizationControllerDelegate/paymentAuthorizationControllerDidFinish(_:)).
- `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 shipping costs based on the shipping address selected by the user, as previously passed to the delegate in the [`paymentAuthorizationController(_:didSelectShippingContact:completion:)`](/documentation/PassKit/PKPaymentAuthorizationControllerDelegate/paymentAuthorizationController(_:didSelectShippingContact:completion:)) method. If no address has been selected, use the prepopulated address on the payment request.

When this method is called, 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.

> 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)