#frassuath
1 messages · Page 1 of 1 (latest)
hi there!
if you create multiple Checkout Session for the same user, and the user complete the Checkout Session form multiple time, then yes Stripe will create multiple Subscriptions as expected.
you could prevent this by creating a single Checkout Session by user
otherwise there are a few ways to detect this in the webhook event. for example:
- if you used a customer ID or some
metadatato identify the user - or check the email entered by the user
- or maybe check the fingerprint of the payment method used
Ok I will check with this
Thanks
happy to help 🙂
One more question, if the customer fail with his payment method on checkout and then retry, we receive multiple event?
depends on which event you are listening to
Ok, so it will not trigger checkout.session.completed until everything is ok ?
correct, that will be only triggered once at most