#Abhishek-metadata

1 messages · Page 1 of 1 (latest)

small lake
indigo finch
#

Thanks @small lake . It worked. Now I can resume my work again

#

Suppose I created the checkout session and I got redirected to the checkout page. Now instead of making payment, I close the tab or go to another url, then which webhook event will get invoked?

small lake
#

No event.

indigo finch
#

Is there any way to capture it?

small lake
#

not really, you can't know if the customer just closes the tab etc. What's the use case overall?

indigo finch
#

The use case is if any user goes for payment and if the user cancels the payment, then I should get notified. But I'm not getting, how to do it?

small lake
#

you can't really(even if you build this yourself there's not really a way to reliably know it).

#

the most you can do is say "this customer hasn't paid yet and it's been 1 hour, so I'm going to assume they cancelled".

indigo finch
#

ok

#

Can we capture any event when the user clicks on the back button present in the checkout session?

small lake
#

what do you call 'the back button' exactly? the browser one, or the one that's inside the Checkout page itself(top left, where your merchant name is)

indigo finch
#

The one that's inside the Checkout page itself(top left, where your merchant name is present)

small lake
#

then there's no webhook event, but the user is sent to the cancel_url you set on the Session.

indigo finch
#

If they click on the browser's back button?

small lake
#

then it's what I said above, you have no way to know that really

#

or at least Stripe isn't going to tell you directly, maybe you can track if yourself from seeing them reload your page.