-
All Stripe iOS errors will be under this domain.
Declaration
Swift
public static let stripeDomain: String
-
The error domain for errors in
STPPaymentHandler
.Declaration
Swift
@objc public static let STPPaymentHandlerErrorDomain: String
-
A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
Declaration
Swift
public static let errorMessageKey: String
-
An SDK-supplied “hint” that is intended to help you, the developer, fix the error
Declaration
Swift
public static let hintKey: String
-
What went wrong with your STPCard (e.g., STPInvalidCVC. See below for full list).
Declaration
Swift
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
public static let errorParameterKey: String
-
The error code returned by the Stripe API.
Declaration
Swift
public static let stripeErrorCodeKey: String
-
The error type returned by the Stripe API.
Declaration
Swift
public static let stripeErrorTypeKey: String
-
If the value of
userInfo[stripeErrorCodeKey]
isSTPError.cardDeclined
, the value for this key contains the decline code.Declaration
Swift
public static let stripeDeclineCodeKey: 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