The default behaviour for a Checkout Session is to expire after 24 hours. However if you require greater control, you can manually expire them. Try out the example below:
const session = await stripe.checkout.sessions.expire();
Make copies, remix, change and learn how to play with this tinydemo.
Reach out to us on any of our contact channels: