<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PayWithApplePayButton/init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:fallback:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)",
      "SwiftUI",
      "_PassKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:16_PassKit_SwiftUI012PayWithAppleE6ButtonV_7request28onPaymentAuthorizationChange0J24MerchantSessionRequested8fallbackACyxGAA0efgeH5LabelV_So16PKPaymentRequestCyAA0efgehkL5PhaseOcSo0stnO6UpdateCyYacxyXEtcfc"
  },
  "title" : "init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:fallback:)"
}
-->

# init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:fallback:)

```
nonisolated init(_ label: PayWithApplePayButtonLabel = .plain, request: PKPaymentRequest, onPaymentAuthorizationChange: @escaping (PayWithApplePayButtonPaymentAuthorizationPhase) -> Void, onMerchantSessionRequested: @escaping () async -> PKPaymentRequestMerchantSessionUpdate, @ViewBuilder fallback: () -> Fallback)
```

---

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)