#uh oh
1 messages · Page 1 of 1 (latest)
Can you share the error and Payment Intent ID in here?
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.
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
POST /v1/payment_intents/pi_3M5at7RMcoXgMBBB0GbOcO40/capture
Yeah! But I'm having trouble figuring out why it's throwing the 'no such payment_intent' error if it's capturing it
req_hl5Xaohy3N3efn
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
I see. How come the payment intent was successfully charged on the dashboard then?
The payment intent went through on this account acct_1KvymDRMcoXgMBBB
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
Sorry, I'm confused, did it try charging on both accounts?
It tried charging on both accounts, and only one of them went through?
Here's where you both created and captured the PI initially on the right account: https://dashboard.stripe.com/test/logs/req_kLbwm0HCfqSRJB
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