#Matt Sitegurus
1 messages · Page 1 of 1 (latest)
Hi there!
We don't send a specific event when a user click on the back arrow in a Checkout Session.
You can see all available Checkout Session events here: https://stripe.com/docs/api/events/types#event_types-checkout.session.async_payment_failed
Do checkout sessions automatically expire after x number of minutes if the payment is not taken? Perhaps I can use the expiry event?
I just want to tidy up abandoned orders on my site, so it doesn't matter if it happens asynchronously later on.
Problem with running a script on the redirect page, is that there is no order_id to use as reference
Do checkout sessions automatically expire after x number of minutes if the payment is not taken?
By default it expire after 24hours. But that can be changed with this parameter: https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-expires_at
Thanks, I think that will work here then!
Assuming of course that an session will still expire after it's already been cancelled?
Since there is no official cancelled status, I think this would be the case- it would remain open.
Yes, the session will expire if the customer doesn't actually make a payment.