#bird-checkout-events

1 messages · Page 1 of 1 (latest)

alpine deltaBOT
azure pumice
#

bird-checkout-events

#

@sly narwhal what do you call "cancels out of checkout"? Like clicking the arrow on the left hand side? If so that sends the customer to the cancel_url that you configured in the API but it wouldn't trigger an Event no

#

I don't understand the second part at all. This would only happen if you create a brand new Checkout Session for them every single time right?

#

What you can/should do is use a session/cookie on your app/website to recognize that customer and send them to their existing Checkout Session's URL if they have one

sly narwhal
# azure pumice What you can/should do is use a session/cookie on your app/website to recognize ...

Okay. So right now I am calling stripe.checkout.Session.create() every time user tries to purchase a new plan. I'll fix this thanks for the heads up.

Apart from that what would be a good way to ensure incomplete subscriptions and open invoice don't remain on user's stripe account because, lets say, their checkout session expired when they tried to purchase again but this time for a different tier/plan? Should I check for incomplete subscription and cancel them before creating new checkout session?

azure pumice
#

incomplete Subscriptions expire after 24 hours, which is the same expiry as a Checkout Session.

#

But if you create another Checkout Session ahead of expiry then yes you should expire the previous Checkout Session