#uh oh

1 messages · Page 1 of 1 (latest)

burnt valveBOT
rocky minnow
#

Can you share the error and Payment Intent ID in here?

onyx ingot
#

Hi!

StripeInvalidRequestError: No such payment_intent: 'pi_3M5at7RMcoXgMBBB0GbOcO40'

#

But I check on Stripe dashboard and the payment intent is captured successfully

#

And when I go into the catch block, I try to capture it again (just to test) and it says that the payment intent has been captured already.

rocky minnow
#

Yeah you can't capture a payment intent twice

#

If it's already been captured that's expected

#

Can you paste the request id for the resource missing error?

#

Looks like req_123

onyx ingot
#

POST /v1/payment_intents/pi_3M5at7RMcoXgMBBB0GbOcO40/capture

onyx ingot
rocky minnow
#

Yeah can you share the request id? Looks like req_123

onyx ingot
#

req_hl5Xaohy3N3efn

rocky minnow
#

You made that request from a different account. pi_3M5at7RMcoXgMBBB0GbOcO40 exists on acct_1KvymDRMcoXgMBBB but you made the request on the following account: acct_1IfXkPIAShFZhsKW

onyx ingot
#

I see. How come the payment intent was successfully charged on the dashboard then?

rocky minnow
#

What do you mean?

#

It's on a different account

onyx ingot
#

The payment intent went through on this account acct_1KvymDRMcoXgMBBB

rocky minnow
#

Correct

#

But the request was made on acct_1IfXkPIAShFZhsKW

#

That's why you get the payment intent doesn't exist error

#

Because it doesn't exist on that account

onyx ingot
#

Sorry, I'm confused, did it try charging on both accounts?

#

It tried charging on both accounts, and only one of them went through?

rocky minnow
#

There was no reason to even initiate a capture call as you specified confirm=True on the PI

#

So it's done automatically

#

Then for some reason in your code, you made an api request on a totally different stripe account, acct_1IfXkPIAShFZhsKW, to capture that payment intent which really exists on acct_1KvymDRMcoXgMBBB and was already captured

onyx ingot
#

Ohhhhh I see.

#

I just realized my mistake

#

Thank you so much!!