_PassKit_SwiftUI is the SwiftUI integration for PassKit, providing the Add To Wallet button and controls to add passes and payment cards. With it you present an Add To Wallet button, styled through AddPassToWalletButtonStyle and configured with AddPassToWalletButtonFilter, and handle the result via AddPassToWalletButtonResponse. The framework also supplies the Pay with Apple Pay button, customized with PayWithApplePayButtonLabel, PayWithApplePayButtonStyle, and the PayWithApplePayButtonPaymentAuthorizationPhase, along with Apple Pay merchandising controls (ApplePayMerchandisingAction, ApplePayMerchandisingStyle), Pay Later display via PayLaterViewAction and PayLaterViewDisplayStyle, and identity verification through the Verify Identity with Wallet button. These controls are available on iOS, macOS, watchOS, and visionOS.
Add to Wallet Button 3
Present and configure a button that lets people add passes to Apple Wallet from your interface.
- StAddPassToWalletButtonStyleA type that defines the visual appearance of the Add to Wallet button.
- StAddPassToWalletButtonFilterA type that filters which passes the Add to Wallet button offers to add.
- StAddPassToWalletButtonResponseA response containing all the data required to create an add payment
Pay with Apple Pay Button 3
Display a Pay with Apple Pay button and respond to its payment authorization flow.
- StPayWithApplePayButtonLabelDetermines the label on Pay With Apple Pay Button
- StPayWithApplePayButtonStyleDetermines the color of the Pay With Apple Pay Button
- EnPayWithApplePayButtonPaymentAuthorizationPhaseDescribes the current state of a payment transaction after a user starts the transaction.
Apple Pay Merchandising 3
Configure and style Apple Pay merchandising controls that promote Apple Pay availability.
- StApplePayMerchandisingActionType of action taken when the button is tapped on the ApplePayMerchandisingView
- StApplePayMerchandisingStyleStyling layout of the ApplePayMerchandisingView
- StApplePayMerchandisingPartnerConfigurationDefines the partner configuration for the ApplePayMerchandisingView
Pay Later 2
Drive and style the Apple Pay Later display in your checkout experience.
- StPayLaterViewActionA type that describes an action performed by the Apple Pay Later view.
- StPayLaterViewDisplayStyleA type that defines how the Apple Pay Later view is displayed.
Verify Identity with Wallet 2
Present and style the Verify Identity with Wallet button for identity verification.
- StVerifyIdentityWithWalletButtonLabelDetermines the label on Verify Identity with Wallet Button
- StVerifyIdentityWithWalletButtonStyleDetermines the color of the Verify Identity with Wallet Button
Structures 6
- StAddPassToWalletButtonA control that displays the Add To Wallet button which allows users to
- StApplePayMerchandisingView
- StAsyncShareablePassConfigurationA view that asynchronously creatings a `PKAddShareablePassConfiguration` based
- StPayLaterViewA view that displays the Apple Pay Buy Now Pay Later (BNPL) Merchandising which allows users to
- StPayWithApplePayButtonA control that displays the Apple Pay button which allows users to invoke
- StVerifyIdentityWithWalletButton