#frassuath

1 messages · Page 1 of 1 (latest)

clever fractalBOT
quiet adder
#

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 metadata to identify the user
  • or check the email entered by the user
  • or maybe check the fingerprint of the payment method used
wooden leaf
#

Ok I will check with this
Thanks

quiet adder
#

happy to help 🙂

wooden leaf
#

One more question, if the customer fail with his payment method on checkout and then retry, we receive multiple event?

quiet adder
#

depends on which event you are listening to

wooden leaf
#

Ok, so it will not trigger checkout.session.completed until everything is ok ?

quiet adder
#

correct, that will be only triggered once at most