TechnologiesCommerce, Payments & Ads

_PassKit_SwiftUI cross-import overlay

iOSmacOStvOSwatchOSvisionOS

_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.

  • St
    AddPassToWalletButtonStyle
    A type that defines the visual appearance of the Add to Wallet button.
  • St
    AddPassToWalletButtonFilter
    A type that filters which passes the Add to Wallet button offers to add.
  • St
    AddPassToWalletButtonResponse
    A 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.

  • St
    PayWithApplePayButtonLabel
    Determines the label on Pay With Apple Pay Button
  • St
    PayWithApplePayButtonStyle
    Determines the color of the Pay With Apple Pay Button
  • En
    PayWithApplePayButtonPaymentAuthorizationPhase
    Describes 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.

  • St
    ApplePayMerchandisingAction
    Type of action taken when the button is tapped on the ApplePayMerchandisingView
  • St
    ApplePayMerchandisingStyle
    Styling layout of the ApplePayMerchandisingView
  • St
    ApplePayMerchandisingPartnerConfiguration
    Defines the partner configuration for the ApplePayMerchandisingView

Pay Later 2

Drive and style the Apple Pay Later display in your checkout experience.

  • St
    PayLaterViewAction
    A type that describes an action performed by the Apple Pay Later view.
  • St
    PayLaterViewDisplayStyle
    A 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.

  • St
    VerifyIdentityWithWalletButtonLabel
    Determines the label on Verify Identity with Wallet Button
  • St
    VerifyIdentityWithWalletButtonStyle
    Determines the color of the Verify Identity with Wallet Button

Structures 6

  • St
    AddPassToWalletButton
    A control that displays the Add To Wallet button which allows users to
  • St
    ApplePayMerchandisingView
  • St
    AsyncShareablePassConfiguration
    A view that asynchronously creatings a `PKAddShareablePassConfiguration` based
  • St
    PayLaterView
    A view that displays the Apple Pay Buy Now Pay Later (BNPL) Merchandising which allows users to
  • St
    PayWithApplePayButton
    A control that displays the Apple Pay button which allows users to invoke
  • St
    VerifyIdentityWithWalletButton

Extends 1

View
← Commerce, Payments & Ads