Configuration
public struct Configuration
Card component configuration.
-
Indicates if the field for entering the holder name should be displayed in the form. Defaults to false.
Declaration
Swift
public var showsHolderNameField: Bool
-
Indicates if the field for storing the card payment method should be displayed in the form. Defaults to true.
Declaration
Swift
public var showsStorePaymentMethodField: Bool
-
Indicates whether to show the security code field at all. Defaults to true.
Declaration
Swift
public var showsSecurityCodeField: Bool
-
Indicates whether to show the security fields for South Korea issued cards. Defaults to
auto
. In AUTO mode the field will appear only for card issued in “KR” (South Korea).Declaration
Swift
public var koreanAuthenticationMode: FieldVisibility
-
Indicates the visibility mode for the social security number field (CPF/CNPJ) for Brazilian cards. Defaults to
auto
. Inauto
mode the field will appear based on card bin lookup.Declaration
Swift
public var socialSecurityNumberMode: FieldVisibility
-
Indicates the display mode of the billing address form. Defaults to none.
Declaration
Swift
public var billingAddressMode: AddressFormType
-
Stored card configuration.
Declaration
Swift
public var stored: StoredCardConfiguration
-
The list of allowed card types. Defaults to nil. By default list of supported cards is extracted from component’s
AnyCardPaymentMethod
. Use this property to enforce a custom collection of card types.Declaration
Swift
public var allowedCardTypes: [CardType]?
-
Installments options to present to the user.
Declaration
Swift
public var installmentConfiguration: InstallmentConfiguration?
-
List of ISO country codes that is supported for the billing address. When nil, all countries are provided.
Declaration
Swift
public var billingAddressCountryCodes: [String]?
-
init(showsHolderNameField:
showsStorePaymentMethodField: showsSecurityCodeField: koreanAuthenticationMode: socialSecurityNumberMode: billingAddressMode: storedCardConfiguration: allowedCardTypes: installmentConfiguration: billingAddressCountryCodes: ) Configuration of Card component.
Declaration
Swift
public init(showsHolderNameField: Bool = false, showsStorePaymentMethodField: Bool = true, showsSecurityCodeField: Bool = true, koreanAuthenticationMode: FieldVisibility = .auto, socialSecurityNumberMode: FieldVisibility = .auto, billingAddressMode: AddressFormType = .none, storedCardConfiguration: StoredCardConfiguration = StoredCardConfiguration(), allowedCardTypes: [CardType]? = nil, installmentConfiguration: InstallmentConfiguration? = nil, billingAddressCountryCodes: [String]? = nil)
Parameters
showsHolderNameField
Indicates if the field for entering the holder name should be displayed in the form. Defaults to false.
showsStorePaymentMethodField
Indicates if the field for storing the card payment method should be displayed in the form. Defaults to true.
showsSecurityCodeField
Indicates whether to show the security code field at all. Defaults to true.
koreanAuthenticationMode
Indicates whether to show the security fields for South Korea issued cards. Defaults to .auto.
billingAddressMode
Indicates mode of how to display the billing address form. Defaults to none.
storedCardConfiguration
Stored card configuration.
allowedCardTypes
The enforced list of allowed card types.
installmentConfiguration
Configuration for installments. Defaults to
nil
.billingAddressCountryCodes
List of ISO country codes that is supported for the billing address. Defaults to
nil
, which equals to all countries.