One Logo Pool Ball
_PassKit_SwiftUI · IOS API REFERENCE

PayWithApplePayButton

struct · iOS 16.0+ · SDK 27.1

@MainActor @preconcurrency struct PayWithApplePayButton<Fallback> where Fallback : View

A control that displays the Apple Pay button which allows users to invoke the Apple Pay sheet and payment flow.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PayWithApplePayButton.init(_:action:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.body

This protocol needs associated types that cannot yet cross the bridge.

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:fallback:)

callback cannot propagate synchronous failure

PayWithApplePayButton.init(_:request:onPaymentAuthorizationChange:onMerchantSessionRequested:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

All _PassKit_SwiftUI types →