STPPaymentHandlerErrorCode

@objc
public enum STPPaymentHandlerErrorCode : Int

Error codes generated by STPPaymentHandler

  • Indicates that the action requires an authentication method not recognized or supported by the SDK.

    Declaration

    Swift

    @objc(STPPaymentHandlerUnsupportedAuthenticationErrorCode)
    case unsupportedAuthenticationErrorCode
  • Indicates that the action requires an authentication app, but either the app is not installed or the request to switch to the app was denied.

    Declaration

    Swift

    @objc(STPPaymentHandlerRequiredAppNotAvailableErrorCode)
    case requiredAppNotAvailable
  • Attach a payment method to the PaymentIntent or SetupIntent before using STPPaymentHandler.

    Declaration

    Swift

    @objc(STPPaymentHandlerRequiresPaymentMethodErrorCode)
    case requiresPaymentMethodErrorCode
  • The PaymentIntent or SetupIntent status cannot be resolved by STPPaymentHandler.

    Declaration

    Swift

    @objc(STPPaymentHandlerIntentStatusErrorCode)
    case intentStatusErrorCode
  • The action timed out.

    Declaration

    Swift

    @objc(STPPaymentHandlerTimedOutErrorCode)
    case timedOutErrorCode
  • There was an error in the Stripe3DS2 SDK.

    Declaration

    Swift

    @objc(STPPaymentHandlerStripe3DS2ErrorCode)
    case stripe3DS2ErrorCode
  • The transaction did not authenticate (e.g. user entered the wrong code).

    Declaration

    Swift

    @objc(STPPaymentHandlerNotAuthenticatedErrorCode)
    case notAuthenticatedErrorCode
  • STPPaymentHandler does not support concurrent actions.

    Declaration

    Swift

    @objc(STPPaymentHandlerNoConcurrentActionsErrorCode)
    case noConcurrentActionsErrorCode
  • Payment requires a valid STPAuthenticationContext. Make sure your presentingViewController isn’t already presenting.

    Declaration

    Swift

    @objc(STPPaymentHandlerRequiresAuthenticationContextErrorCode)
    case requiresAuthenticationContextErrorCode
  • There was an error confirming the Intent. Inspect the paymentIntent.lastPaymentError or setupIntent.lastSetupError property.

    Declaration

    Swift

    @objc(STPPaymentHandlerPaymentErrorCode)
    case paymentErrorCode
  • 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

    Swift

    @objc(STPPaymentHandlerInvalidClientSecret)
    case invalidClientSecret