#kodai_82300
1 messages · Page 1 of 1 (latest)
Hello! What error are you getting?
I don't see a clear error.
I can't take the next step.
it stops at the creation of paymentIntent.
👋 stepping in
So two things
Either you can use a try/catch to catch the error on your server here
Or you could look at your logs in your Stripe Dashboard
To see what the error is on your PaymentIntent creation
Those logs are here: https://dashboard.stripe.com/test/logs
Do you see an error in your Dashboard logs?
I found this error
payment_intent_unexpected_state
You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method
Yep okay so that tells you the issue
You are trying to confirm a PaymentIntent without passing a PaymentMethod ID
If you are going to confirm the PaymentIntent on creation then you must pass a payment_method: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
I did that without any problem.
Thank you your support😆
👍