STPErrorCode
Objective-C
enum STPErrorCode {}
Swift
typealias STPError.Code._ErrorType = STPError
Possible error code values for NSError’s with the StripeDomain
domain
-
Trouble connecting to Stripe.
Declaration
Objective-C
STPConnectionError = 40
Swift
case STPConnectionError = 40
-
Your request had invalid parameters.
Declaration
Objective-C
STPInvalidRequestError = 50
Swift
case STPInvalidRequestError = 50
-
General-purpose API error.
Declaration
Objective-C
STPAPIError = 60
Swift
case STPAPIError = 60
-
Something was wrong with the given card details.
Declaration
Objective-C
STPCardError = 70
Swift
case STPCardError = 70
-
The operation was cancelled.
Declaration
Objective-C
STPCancellationError = 80
Swift
case STPCancellationError = 80
-
The ephemeral key could not be decoded. Make sure your backend is sending the unmodified JSON of the ephemeral key to your app. https://stripe.com/docs/mobile/ios/standard#prepare-your-api
Declaration
Objective-C
STPEphemeralKeyDecodingError = 1000
Swift
case STPEphemeralKeyDecodingError = 1000