-
Initializes a Configuration
Declaration
Swift
public init(defaultValues: DefaultAddressDetails = .init(), additionalFields: AddressViewController.Configuration.AdditionalFields = .init(), allowedCountries: [String] = [], appearance: PaymentSheet.Appearance = PaymentSheet.Appearance.default, buttonTitle: String? = nil, title: String? = nil)
-
Configuration related to the collection of additional fields beyond the physical address.
See moreDeclaration
Swift
public struct AdditionalFields
-
Default values for the fields collected by
See moreAddressViewController
Declaration
Swift
public struct DefaultAddressDetails
-
The values to pre-populate address fields with.
Declaration
Swift
public var defaultValues: DefaultAddressDetails
-
Fields to collect in addition to the physical address. By default, no additional fields are collected.
Declaration
Swift
public var additionalFields: AdditionalFields
-
A list of two-letter country codes representing countries the customers can select. If the list is empty (the default), we display all countries.
Declaration
Swift
public var allowedCountries: [String]
-
Configuration for the look and feel of the UI
Declaration
Swift
public var appearance: PaymentSheet.Appearance
-
The title of the primary button displayed at the bottom of the screen. Defaults to “Save address”.
Declaration
Swift
public var buttonTitle: String
-
The title of the view controller. Defaults to “Shipping address”.
Declaration
Swift
public var title: String
-
The APIClient instance used to make requests to Stripe
Declaration
Swift
public var apiClient: STPAPIClient
-
A list of two-letter country codes that support autocomplete Defaults to a list of countries that Stripe has audited to ensure a good autocomplete experience.
Declaration
Swift
public var autocompleteCountries: [String]