#Stripe Processing error occurred (400 Bad Request)

9 messages · Page 1 of 1 (latest)

thin crater
#

When attempting to place order by pressing the "Place Order" button in the Review section during the checkout process, using a test card. I'm unable to continue with the checkout flow. I get the error A processing error occurred.
And in the console a 404 Bad request is logged. Heres the console error:

POST https://api.stripe.com/v1/payment_intents/pi_3Own14DL4f9DbLaD23vtC3fp/confirm 400 (Bad Request)
#

Stripe Processing error occurred (400 Bad Request)

#

Im running the frontend on local and the backend is running on railway

thin crater
#

Im using test keys for both STRIPE_API_KEY and NEXT_PUBLIC_STRIPE_KEY

#

This is what my dashboard log says:
"payment_intent_unexpected_state - payment_method
This PaymentIntent's payment_method could not be updated because it has a status of canceled. You may only update the payment_method of a PaymentIntent with one of the following statuses: requires_payment_method, requires_confirmation, requires_action."

#

Can anyone help?

lavish knot
#

how have you solved this? @thin crater

thin crater
#

I did but it was on the v1

#

And i forgot what fixed it