CardType
public struct CardType : Equatable
Data about a card type
-
Card Scheme
Declaration
Swift
public let scheme: CardScheme
-
Name of the scheme (e.g. Visa, Mastercard)
Declaration
Swift
public let name: String
-
Pattern to detect the scheme based on the card number
Declaration
Swift
public let pattern: String
-
The position of the gaps
Declaration
Swift
public let gaps: [Int]
-
The valid lengths
Declaration
Swift
public let validLengths: [Int]
-
The valid lengths for the cvv (card verification value)
Declaration
Swift
public let validCvvLengths: [Int]
-
True if the validity of the card number can be checked using the luhn algorithm
Declaration
Swift
public let isLuhnChecked: Bool