CardRequest
public struct CardRequest : Codable, Sendable
Card request model.
-
The unique identifier of the card in your own system.
Declaration
Swift
public let externalId: String -
The payment card number.
Declaration
Swift
public let pan: String -
The expiration year of the card.
Declaration
Swift
public let expirationYear: String -
The expiration month of the card.
Declaration
Swift
public let expirationMonth: String -
Card billing address postal code (ZIP Code for the US).
Declaration
Swift
@available(*, deprecated) public let postalCode: String? -
The name of the cardholder as it shows on the face of the card.
Declaration
Swift
public let nameOnCard: String? -
The card CVC or CVV code.
Declaration
Swift
public let securityCode: String -
Allows for any number of custom metadata keys and values to be stored with a given entity.
Declaration
Swift
public let metadata: [String : CustomValue]? -
Details of a billing address.
Declaration
Swift
public let billingAddress: OptionalAddress? -
3DS options.
Declaration
Swift
public let threeDSOptions: ThreeDSOptions? -
init(externalId:pan: expirationYear: expirationMonth: securityCode: postalCode: nameOnCard: metadata: billingAddress: threeDSOptions: ) Auxiliary constructor
Declaration
Swift
public init( externalId: String, pan: String, expirationYear: String, expirationMonth: String, securityCode: String, postalCode: String? = nil, nameOnCard: String? = nil, metadata: [String: CustomValue]? = nil, billingAddress: OptionalAddress? = nil, threeDSOptions: ThreeDSOptions? = nil)Parameters
externalIdThe unique identifier of the card in your own system.
panThe payment card number.
expirationYearThe expiration year of the card.
expirationMonthThe expiration month of the card.
securityCodeThe card CVC or CVV code.
postalCodeCard billing address postal code (ZIP Code for the US).
nameOnCardThe name of the cardholder as it shows on the face of the card.
metadataAllows for any number of custom metadata keys and values to be stored with a given entity.
billingAddressDetails of a billing address.
threeDSOptions3DS options.
View on GitHub