#Maurdekye
1 messages · Page 1 of 1 (latest)
Unfortunately there is not a configurable limit for this. You will likely want to write some custom code for this. A solution that I have seen for this before is to check if your customer already has an active Checkout Session and then either re-serve the link to that session if it is active or create a new one if not
i see; thank you
unfortunately, i don't think this will be a viable option for me, as if the user has an active session for one subscription plan, and attempts to load up a session for a separate plan, with the suggested solution, they would be redirected back to the subscription for the initial plan.
Gotcha, in that case you can just expire any active sessions and create a new one 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.
That would prevent them from paying for the first subscription once the session has been expired