skip to Main Content

I’m using the @stripe/stripe-react-native (version 0.19.0) package in my React Native app. When I attempt to confirm a Setup Intent with the confirmSetupIntent method, I receive the following error:

{
  "stripeErrorCode": "resource_missing",
  "localizedMessage": "An unexpected error occurred. Try again in a few seconds.",
  "message": "No such setupintent: 'seti_123456789ABCDE'",
  "type": "invalid_request_error",
  "code": "Failed"
}

Here my code

const { error, setupIntent } = await confirmSetupIntent(
  stripeSetupIntent.setupIntentClientSecret,
  {
    paymentMethodType: 'Card',
    paymentMethodData: {
      billingDetails: {
        name: paymentMethodInfo.companyName,
        email: paymentMethodInfo.email,
      },
    },
  }
);

The Setup Intent ID seti_123456789ABCDE seems to be missing, but i find it on the stripe dashboard.

  • What could be causing this "resource missing" error?
  • Is there something I’m missing in the confirmSetupIntent call?

2

Answers


  1. Chosen as BEST ANSWER

    To fix it, i have to remove the stripeAccountId in the

    <StripeProvider
        publishableKey={stripeSetupIntent.stripeInitializerKey}
        // stripeAccountId={stripeSetupIntent.stripeAccountId}
    >
        {MyComponent}
    </StripeProvider>
    

  2. That error means that the SetupIntent you are trying to confirm does not exist in the Stripe account you are using.

    If you can find the SetupIntent ID in your Dashboard, then it either means:

    • You have multiple Stripe accounts, and you used the API key of the wrong account to make the API request.
    • Or you are using Stripe Connect, and you are confusing the platform account with the connected account. For example if the SetupIntent lives on the connected account, make sure to use the Stripe-Account header in the API request.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search