#prasanth_20580
1 messages ยท Page 1 of 1 (latest)
The Checkout Session will still be active after the user clicks on that button. That button just redirects to your cancel URL
Sessions are automatically expired after 24 hours at which point you will get an event, but that button does not have an effect on that behavior
Ok. Is there a way to kill the session before 24 Hours?
Yes you can use the API to expire the session whenever you would like https://stripe.com/docs/api/checkout/sessions/expire
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and within 24 hours, user cant initiate another transaction OR with another session?
Hello ๐
Expiring a session just means user/customer can't use the same checkout session again for a payment.
They can pay if your code creates a new checkout session