#mboras

1 messages · Page 1 of 1 (latest)

calm sealBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

upper arrow
#

Hi there 👋 could you elaborate a bit? Are you referring to something like an event being triggered client-side that is impacting your code running there? Or is this regarding the Events that we generate and send to your webhook endpoints?

hollow salmon
#

I create booking when user opens checkout with status pending. How can I set status to cancelled when user leaves checkout?

With query params of return url or is there some webhook for that event

upper arrow
#

An Event is sent to your webhook endpoints when a customer successfully completes the checkout flow:
checkout.session.completed: https://stripe.com/docs/api/events/types#event_types-checkout.session.completed

You can also listen for expiring checkout sessions (indicating they were never completed, but that won't necessarily align with customers leaving the flow)
checkout.session.expired: https://stripe.com/docs/api/events/types#event_types-checkout.session.expired

The other thing you can try, I know this works with the success_url but don't recall offhand if it works with the return_url as well, is add {CHECKOUT_SESSION_ID} as a query param to those URLs:
https://stripe.com/docs/payments/checkout/custom-success-page#modify-the-success-url
That'll give you the ID of the Checkout Session to work with so you can find any related objects and take action on those.

hollow salmon
#

nice

#

tny

#

tnx

upper arrow
#

Any time!