fadedbee
fadedbee

Reputation: 44827

Stripe error "No such payment_intent: pi_1GS0redacted" when using newly created account

I have a (test) Stripe integration working with an account I created years ago.

I made a new account (with the same login).

When I used the new account, I was first required (by an error) to add a payment_method_types: ['card'] which I had not previously needed.

It still failed, now with an error:

No such payment_intent: pi_1GS0redacted

pi_1GS0redacted appears on my dashboard as "incomplete".

I have changed the secret key in my code (to match the new account). The new one begins "sk_test_", the old one was just random letters.

Is there an API difference between an account created years ago, and one created a few days ago, which now requires use of payment_method_types?

I'm using code from: https://stripe.com/docs/payments/accept-a-payment "2 Create a PaymentIntent Server-side" which does not specify payment_method_types.

How can I get my new account to work?

Upvotes: 1

Views: 744

Answers (1)

floatingLomas
floatingLomas

Reputation: 8747

"No such" errors on Stripe for otherwise-valid IDs are almost certainly an API key mismatch; you're looking for an object that doesn't exist in the Stripe Account of the API key you're using here.

It can also sometimes be a missing (or present where it shouldn't be) Stripe-Account header if you're using Connect.

Upvotes: 2

Related Questions