Card
public struct Card
Contains the information of a card that is yet to be encrypted.
-
The card number.
Declaration
Swift
public var number: String?
-
The card’s security code.
Declaration
Swift
public var securityCode: String?
-
The month the card expires.
Declaration
Swift
public var expiryMonth: String?
-
The year the card expires.
Declaration
Swift
public var expiryYear: String?
-
The name of the card holder.
Declaration
Swift
public var holder: String?
-
Create new unencrypted card from collected strings.
Declaration
Swift
public init(number: String? = nil, securityCode: String? = nil, expiryMonth: String? = nil, expiryYear: String? = nil, holder: String? = nil)
Parameters
number
The card number.
securityCode
The card’s security code.
expiryMonth
The month the card expires.
expiryYear
The year the card expires.
holder
The name of the card holder.