STPError
public class STPError : NSObject
Top-level class for Stripe error constants.
-
All Stripe iOS errors will be under this domain.
Declaration
Swift
@objc public static let stripeDomain: String
-
A developer-friendly error message that explains what went wrong. You probably shouldn’t show this to your users, but might want to use it yourself.
Declaration
Swift
@objc public static let errorMessageKey: String
-
What went wrong with your STPCard (e.g., STPInvalidCVC. See below for full list).
Declaration
Swift
@objc public static let cardErrorCodeKey: String
-
Which parameter on the STPCard had an error (e.g., “cvc”). Useful for marking up the right UI element.
Declaration
Swift
@objc public static let errorParameterKey: String
-
The error code returned by the Stripe API.
Declaration
Swift
@objc public static let stripeErrorCodeKey: String
-
The error type returned by the Stripe API.
Declaration
Swift
@objc public static let stripeErrorTypeKey: String
-
The card number is not a valid credit card number.
Declaration
Swift
@objc public static let invalidNumber: String
-
The card has an invalid expiration month.
Declaration
Swift
@objc public static let invalidExpMonth: String
-
The card has an invalid expiration year.
Declaration
Swift
@objc public static let invalidExpYear: String
-
The card has an invalid CVC.
Declaration
Swift
@objc public static let invalidCVC: String
-
The card number is incorrect.
Declaration
Swift
@objc public static let incorrectNumber: String
-
The card is expired.
Declaration
Swift
@objc public static let expiredCard: String
-
The card was declined.
Declaration
Swift
@objc public static let cardDeclined: String
-
An error occured while processing this card.
Declaration
Swift
@objc public static let processingError: String
-
The card has an incorrect CVC.
Declaration
Swift
@objc public static let incorrectCVC: String
-
The postal code is incorrect.
Declaration
Swift
@objc public static let incorrectZip: String