#José Rodolpho
1 messages · Page 1 of 1 (latest)
Hello! Can you do me a favor and paste that Payment Intent ID here so that I can look it up on my end?
pi_3MkBf2DKY3qN4EUn1UMKctgO
It's because you're return_url is wrong - you need to make sure the return_url you pass in when you call confirmPayment with stripe.js (https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-return_url) is an actual URL
the confirm payment is on the webhook, and its working with the CLI
Are you sure you're confirming the PaymentIntent server-side? Based on the request I'm seeing you're confirm the PaymentIntent client-side using the stripe.js library
There's nothing in that code that actually confirms the PaymentIntent - you're just handling the payment_intent.* events that already happen
and you can't create PaymentIntents client-side with stripe.js - your code is creating the Paymentintent on your server, sending it back to your client (where it gets confirmed), and then you get back the payment_intent.* webhook events on your server
yes, correct
Yeah, so as I was saying - your code that's confirming the PaymentIntent client-side is likely wrong and using the wrong return_url
ok, so let me check
im using the stripe card checkout for send the payment info
so, the stripe do the confirmation, right?
What do you mean by "stripe card checkout"? Do you mean the payment element (https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements)?