OPCardErrorType
@objc
public enum OPCardErrorType : Int, CustomStringConvertible
Possible card error codes when there was an error tokenizing a card. These values can be
accessed from the OPError.cardErrorType property.
-
The card number is invalid (empty, incorrect format, incomplete, etc)
Declaration
Swift
case invalidNumber -
The expiration month is invalid.
Declaration
Swift
case invalidExpMonth -
The expiration year is invalid
Declaration
Swift
case invalidExpYear -
The card is expired.
Declaration
Swift
case expiredCard -
The card was declined.
Declaration
Swift
case cardDeclined -
An error occured while processing this card.
Declaration
Swift
case processingError -
The postal code is invalid (empty, incorrect format, incomplete, etc).
Declaration
Swift
case invalidZip -
The CVV is not valid (empty, incorrect format, incomplete, etc)
Declaration
Swift
case invalidCvv -
An unknown or unaccounted-for error occured
Declaration
Swift
case unknownCardError -
A string representation of this enum
Declaration
Swift
public var description: String { get }