OPCardField
@objc
public enum OPCardField : Int, CustomStringConvertible
Represents the different credit card fields
-
The card’s number field
Declaration
Swift
case number -
The card’s expiration field
Declaration
Swift
case expiration -
The card’s security code (CVV) field
Declaration
Swift
case cvv -
The card’s postal code field
Declaration
Swift
case postalCode -
An unknown card field
Declaration
Swift
case unknown -
A string representation of the card field
Declaration
Swift
public var description: String { get } -
Convenience method to convert a string to an OPCardField value
Declaration
Swift
public static func convert(from cardField: String) -> OPCardField