CardTokenRequest
public struct CardTokenRequest : Codable
Card Token
-
The card number
Declaration
Swift
public var number: String
-
The two-digit expiry month of the card
Declaration
Swift
public var expiryMonth: Int
-
The four-digit expiry year of the card
Declaration
Swift
public var expiryYear: Int
-
The card-holder name
Declaration
Swift
public var name: String?
-
The card verification value/code. 3 digits, except Amex (4 digits).
Declaration
Swift
public var cvv: String?
-
The payment source owner’s billing address
Declaration
Swift
public var billingAddress: Address?
-
The payment source owner’s phone number
Declaration
Swift
public var phone: CkoPhoneNumber?
-
Initialize
CardTokenRequest
Declaration
Swift
public init(number: String, expiryMonth: Int, expiryYear: Int, name: String? = nil, cvv: String? = nil, billingAddress: Address? = nil, phone: CkoPhoneNumber? = nil)
Parameters
number
The card number
expiryMonth
The two-digit expiry month of the card
expiryYear
The four-digit expiry year of the card
name
The card-holder name
cvv
The card verification value/code. 3 digits, except Amex (4 digits).
billingAddress
The payment source owner’s billing address
phone
The payment source owner’s phone number
Return Value
The new
CardTokenRequest
instance -
Initialize
CardTokenRequest
Declaration
Swift
public init(number: String, expiryMonth: Int, expiryYear: Int, cvv: String? = nil)
Parameters
number
The card number
expiryMonth
The two-digit expiry month of the card
expiryYear
The four-digit expiry year of the card
cvv
The card verification value/code. 3 digits, except Amex (4 digits).
Return Value
The new
CardTokenRequest
instance