Configuration

public struct Configuration

Configuration for PaymentSheet

  • The APIClient instance used to make requests to Stripe

    Declaration

    Swift

    public var apiClient: STPAPIClient
  • Configuration related to Apple Pay If set, PaymentSheet displays Apple Pay as a payment option

    Declaration

    Swift

    public var applePay: ApplePayConfiguration?
  • The color of the Buy or Add button. Defaults to .systemBlue

    Declaration

    Swift

    public var primaryButtonColor: UIColor { get set }
  • The color styling to use for PaymentSheet UI Default value is SheetStyle.automatic @see SheetStyle

    Declaration

    Swift

    @available(iOS 13.0, *)
    public var style: UserInterfaceStyle { get set }
  • Configuration related to the Stripe Customer If set, the customer can select a previously saved payment method within PaymentSheet

    Declaration

    Swift

    public var customer: CustomerConfiguration?
  • Your customer-facing business name. This is used to display a “Pay (merchantDisplayName)” line item in the Apple Pay sheet The default value is the name of your app, using CFBundleDisplayName or CFBundleName

    Declaration

    Swift

    public var merchantDisplayName: String
  • A URL that redirects back to your app that PaymentSheet can use to auto-dismiss web views used for additional authentication, e.g. 3DS2

    Declaration

    Swift

    public var returnURL: String?
  • Initializes a Configuration with default values

    Declaration

    Swift

    public init()