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. In auto 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?
  • 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,
                installmentConfigration: InstallmentConfiguration? = 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 dispaly the billing address form. Defaults to none.

    storedCardConfiguration

    Stored card configuration.

    allowedCardTypes

    The enforced list of allowed card types.

    installmentConfigration

    Configration for installments. Defaults to nil.