<!--
{
  "availability" : [
    "iOS: 15.5.0 -",
    "iPadOS: 15.5.0 -",
    "macOS: 12.5.0 -",
    "watchOS: 8.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/onApplePayPaymentMethodChange(perform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP09_PassKit_aB0E29onApplePayPaymentMethodChange7performQrSo016PKPaymentRequestiJ6UpdateCSo0mJ0CYac_tF"
  },
  "title" : "onApplePayPaymentMethodChange(perform:)"
}
-->

# onApplePayPaymentMethodChange(perform:)

Called when a payment method has changed and asks for an update payment request.
If this modifier isn’t provided Wallet will assume the payment method is valid.

```
nonisolated func onApplePayPaymentMethodChange(perform action: @escaping (PKPaymentMethod) async -> PKPaymentRequestPaymentMethodUpdate) -> some View
```

## Return Value

An update to the payment request method.

---

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)