STPPaymentHandlerErrorCode
Objective-C
enum STPPaymentHandlerErrorCode {}
Swift
typealias STPPaymentHandlerError.Code._ErrorType = STPPaymentHandlerError
Error codes generated by STPPaymentHandler
-
Indicates that the action requires an authentication method not recognized or supported by the SDK.
Declaration
Objective-C
STPPaymentHandlerUnsupportedAuthenticationErrorCode
Swift
case unsupportedAuthentication = 0
-
Attach a payment method to the PaymentIntent or SetupIntent before using
STPPaymentHandler
.Declaration
Objective-C
STPPaymentHandlerRequiresPaymentMethodErrorCode
Swift
case requiresPaymentMethod = 1
-
The PaymentIntent or SetupIntent status cannot be resolved by
STPPaymentHandler
.Declaration
Objective-C
STPPaymentHandlerIntentStatusErrorCode
Swift
case intentStatus = 2
-
The action timed out.
Declaration
Objective-C
STPPaymentHandlerTimedOutErrorCode
Swift
case timedOut = 3
-
There was an error in the Stripe3DS2 SDK.
Declaration
Objective-C
STPPaymentHandlerStripe3DS2ErrorCode
Swift
case stripe3DS2 = 4
-
The transaction did not authenticate (e.g. user entered the wrong code).
Declaration
Objective-C
STPPaymentHandlerNotAuthenticatedErrorCode
Swift
case notAuthenticated = 5
-
STPPaymentHandler
does not support concurrent actions.Declaration
Objective-C
STPPaymentHandlerNoConcurrentActionsErrorCode
Swift
case noConcurrentActions = 6
-
Payment requires a valid
STPAuthenticationContext
. Make sure your presentingViewController isn’t already presenting.Declaration
Objective-C
STPPaymentHandlerRequiresAuthenticationContextErrorCode
Swift
case requiresAuthenticationContext = 7
-
There was an error confirming the Intent.
Inspect the
paymentIntent.lastPaymentError
orsetupIntent.lastSetupError
property.Declaration
Objective-C
STPPaymentHandlerPaymentErrorCode
Swift
case payment = 8
-
The provided PaymentIntent of SetupIntent client secret does not match the expected pattern for client secrets.
Make sure that your server is returning the correct value and that is being passed to
STPPaymentHandler
.Declaration
Objective-C
STPPaymentHandlerInvalidClientSecret
Swift
case invalidClientSecret = 9