#benstjohn

1 messages · Page 1 of 1 (latest)

rocky jayBOT
swift kayak
#

Hello 👋
I don't think there's specific error code for that. It should be invalid_request_error if I understand it correctly. You can just run a quick test to be 100% sure.

EDIT: corrected below

soft walrus
#

I want to SPECIFICALLY know if this is the issue

swift kayak
#

Not sure what you mean by that.

#

Can you elaborate?

#

Ah my bad, the error type should be invalid_request_error and the error code would be payment_intent_unexpected_state

#

lmk if that helps @soft walrus

soft walrus
#

Basically I want an easy way to handle the error I'm getting when double capturing a payment intent

#

we have it happening a lot and it's crashing our app since we have a "catch all" that's checking if Stripe is spitting back an error on capture

#

so I want to essentially whitelist that specific error

swift kayak
#

Gotcha. The error code should be payment_intent_unexpected_state with message This PaymentIntent could not be captured because it has already been captured.