DefaultAddressDetails
public struct DefaultAddressDetails
Default values for the fields collected by AddressViewController
-
The customer’s address
Declaration
Swift
public var address: PaymentSheet.Address
-
The customer’s full name
Declaration
Swift
public var name: String?
-
The customer’s phone number, without formatting (e.g. “5551234567”) or in E.164 format (e.g. “+15551234567”)
Declaration
Swift
public var phone: String?
-
Whether or not your custom checkbox is initially selected.
Note
The checkbox is displayed below the other fields whenAdditionalFieldsConfiguration.checkboxLabel
is set.Declaration
Swift
public var isCheckboxSelected: Bool?
-
Initializes an AddressDetails
Declaration
Swift
public init(address: PaymentSheet.Address = .init(), name: String? = nil, phone: String? = nil, isCheckboxSelected: Bool? = nil)