#harinth-pi-sync-action

1 messages · Page 1 of 1 (latest)

frigid tide
#

Hey there! Generally this is not recommended as there's no guarantee your customers don't exist the payment flow before you can carry out any synchronous action

#

Why not use webhooks? Events are sent pretty quickly

jovial heath
#

Suppose I have a form, and user enters card details and submit. We will do payment Intent via javascript. Upon successful payment, we will redirect user to a success page, by sending a mail to the user as payment is successful. This is the scenario. Webhook won't work here right?

frigid tide
#

There's no guarantee at all that your customer doesn't close the browser before they're sent to the success page/URL and your email is never sent

jovial heath
#

What if I am not giving return_url in that case?

#

Will it show success message at the same area where payment form comes?

gritty nexus
#

Hi! I'm taking over ynnoj

jovial heath
#

Ok

gritty nexus
#

Where do you see the return_url?

jovial heath
#

Return url we set when using javascript paymentIntent function

#

I guess return url is not mandatory

gritty nexus
jovial heath
#

Yes

#

Is there any issues while using confirm Payment?

gritty nexus
#

Absolutely no issues, I was just trying to understand better your question

gritty nexus
#

Sorry for the delay. Yes, the return_url is required when calling stripe.confirmPayment()