Consider the following course of events:
- A user selects one of multiple subscription options on my website and clicks the "pay" button.
- They're redirected to the Stripe Checkout page but don't complete the payment yet.
- They somehow manage to get back to the page where they select the subscription while keeping the Stripe Checkout page open. (I know this is somewhat contrived but technically possible.)
- They choose a different subscription option and click on "pay" again.
- A second checkout session is created and another Stripe Checkout page opens.
- Now they complete payments on both checkout pages.
How can I prevent this? Is there a way to cancel a checkout session? When I create a checkout session for a subscription, I don't receive a payment intent that I could cancel. There also doesn't seem to be a way to cancel checkout sessions directly.