VGSCheckoutCustomConfiguration
public struct VGSCheckoutCustomConfiguration : VGSCheckoutBasicConfigurationProtocol
Holds configuration for vault payment processing with custom configuration, conforms to VGSCheckoutBasicConfigurationProtocol
.
-
String
object, organization vault id.Declaration
Swift
public let vaultID: String
-
String
object, organization vault environment with data region.(e.g. “live”, “live-eu1”, “sandbox”). Default issandbox
.Declaration
Swift
public let environment: String
-
String?
, organization vault inbound route id, could benil
when vault has only one route.Declaration
Swift
public var routeId: String? { get }
-
Configuration initializer.
Declaration
Swift
public init(vaultID: String, environment: String = "sandbox")
Parameters
vaultID
String
object, organization vault id.environment
String
object, organization vault environment with data region.(e.g. “live”, “live-eu1”, “sandbox”). Default issandbox
.
-
Route configuration, default is
VGSCheckoutCustomRouteConfiguration
object.Declaration
Swift
public var routeConfiguration: VGSCheckoutCustomRouteConfiguration
-
Form UI configuration attributes, default is
VGSCheckoutDefaultTheme
object.Declaration
Swift
public var uiTheme: VGSCheckoutThemeProtocol
-
Card number field options.
Declaration
Swift
public var cardNumberFieldOptions: VGSCheckoutCardNumberOptions { get set }
-
Card holder field options.
Declaration
Swift
public var cardHolderFieldOptions: VGSCheckoutCardHolderOptions { get set }
-
Expiration date field options.
Declaration
Swift
public var expirationDateFieldOptions: VGSCheckoutExpirationDateOptions { get set }
-
CVC field options.
Declaration
Swift
public var cvcFieldOptions: VGSCheckoutCVCOptions { get set }
-
Billing address section visibility.
Declaration
Swift
public var billingAddressVisibility: VGSCheckoutBillingAddressVisibility { get set }
-
Billing address country field options.
Declaration
Swift
public var billingAddressCountryFieldOptions: VGSCheckoutCustomBillingAddressCountryOptions { get set }
-
Billing address, address line 1 field options.
Declaration
Swift
public var billingAddressLine1FieldOptions: VGSCheckoutCustomBillingAddressLine1Options { get set }
-
Billing address, address line 2 field options.
Declaration
Swift
public var billingAddressLine2FieldOptions: VGSCheckoutCustomBillingAddressLine2Options { get set }
-
Billing address city field options.
Declaration
Swift
public var billingAddressCityFieldOptions: VGSCheckoutCustomBillingAddressCityOptions { get set }
-
Billing address postal code field options.
Declaration
Swift
public var billingAddressPostalCodeFieldOptions: VGSCheckoutCustomBillingAddressPostalCodeOptions { get set }
-
Form validation behavior, default is
.onSubmit
.Declaration
Swift
public var formValidationBehaviour: VGSCheckoutFormValidationBehaviour { get set }