#mzzay
1 messages ยท Page 1 of 1 (latest)
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.
Hi ๐ I'm assuming by "cancel the payment" you're referring to the customer leaving the Checkout Session, but please let me know if you meant something else.
Checkout Sessions are not expected to expire when a Customer leaves them, they can continue to accessed until their expires_at time passes, or an explicit request is made to cancel them:
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.
You could add logic to the page you're setting as your return_url so that it triggers a request to expire the session.
Ok I'm going to do that, Thanks for the help !