---
title: "onApplePayShippingMethodChange(perform:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/onapplepayshippingmethodchange(perform:)"
---

# onApplePayShippingMethodChange(perform:)

Called when a user selected a shipping method. This is required if the user is being asked to provide a shipping method.

## Declaration

```swift
nonisolated func onApplePayShippingMethodChange(perform action: @escaping (PKShippingMethod) async -> PKPaymentRequestShippingMethodUpdate) -> some View

```

## Return Value

Return Value An update to the payment request shipping method.

## See Also

### Accessing Apple Pay and Wallet

- [PayWithApplePayButton](passkit/paywithapplepaybutton.md)
- [AddPassToWalletButton](passkit/addpasstowalletbutton.md)
- [VerifyIdentityWithWalletButton](passkit/verifyidentitywithwalletbutton.md)
- [addOrderToWalletButtonStyle(_:)](swiftui/view/addordertowalletbuttonstyle(_:).md)
- [addPassToWalletButtonStyle(_:)](swiftui/view/addpasstowalletbuttonstyle(_:).md)
- [onApplePayCouponCodeChange(perform:)](swiftui/view/onapplepaycouponcodechange(perform:).md)
- [onApplePayPaymentMethodChange(perform:)](swiftui/view/onapplepaypaymentmethodchange(perform:).md)
- [onApplePayShippingContactChange(perform:)](swiftui/view/onapplepayshippingcontactchange(perform:).md)
- [payLaterViewAction(_:)](swiftui/view/paylaterviewaction(_:).md)
- [payLaterViewDisplayStyle(_:)](swiftui/view/paylaterviewdisplaystyle(_:).md)
- [payWithApplePayButtonDisableCardArt()](swiftui/view/paywithapplepaybuttondisablecardart().md)
- [payWithApplePayButtonStyle(_:)](swiftui/view/paywithapplepaybuttonstyle(_:).md)
- [verifyIdentityWithWalletButtonStyle(_:)](swiftui/view/verifyidentitywithwalletbuttonstyle(_:).md)
- [AsyncShareablePassConfiguration](passkit/asyncshareablepassconfiguration.md)
- [transactionTask(_:action:)](swiftui/view/transactiontask(_:action:).md)
