STPErrorCode
@objc
public enum STPErrorCode : Int
Possible error code values for NSErrors with the StripeDomain
domain
-
Trouble connecting to Stripe.
Declaration
Swift
@objc(STPConnectionError) case connectionError = 40
-
Your request had invalid parameters.
Declaration
Swift
@objc(STPInvalidRequestError) case invalidRequestError = 50
-
General-purpose API error.
Declaration
Swift
@objc(STPAPIError) case apiError = 60
-
Something was wrong with the given card details.
Declaration
Swift
@objc(STPCardError) case cardError = 70
-
The operation was cancelled.
Declaration
Swift
@objc(STPCancellationError) case cancellationError = 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
Swift
@objc(STPEphemeralKeyDecodingError) case ephemeralKeyDecodingError = 1000