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 not a valid credit card number.
Declaration
Swift
case invalidNumber -
The card has an invalid expiration month.
Declaration
Swift
case invalidExpMonth -
The card has an invalid expiration year.
Declaration
Swift
case invalidExpYear -
The card has an invalid CVC.
Declaration
Swift
case invalidCVC -
The card number is incorrect.
Declaration
Swift
case incorrectNumber -
The card is expired.
Declaration
Swift
case expiredCard -
The card was declined.
Declaration
Swift
case cardDeclined -
The card has an incorrect CVC.
Declaration
Swift
case incorrectCVC -
An error occured while processing this card.
Declaration
Swift
case processingError -
The postal code is incorrect.
Declaration
Swift
case incorrectZip -
An unknown or unaccounted-for error occured
Declaration
Swift
case unknownCardError -
A string representation of this enum
Declaration
Swift
public var description: String { get }
OPCardErrorType Enumeration Reference