#nunu
1 messages · Page 1 of 1 (latest)
I'm not sure I follow
cus_MJgSH7hobFJcfi
ours is an online course selling platform, instructors have connected their stripe
for one above account
student get subscribed twice
cus_MJgSH7hobFJcfi
what cam be the reason
Hey! Taking over for my colleague. Let me catch up.
How are you providing Subscription to your Customers ? what Stripe Integration are you using ?
Are you using Stripe Checkout? Stripe Elements? how your customer Subscribe to your services using Stripe ?
So probably your frontend did two calls to your backend in order to create two Subscription.
It looks like you have a PHP Backend. Here are the two request that your backend sent to Stripe in order to create two Subscription for the same customer:
https://dashboard.stripe.com/logs/req_uGQkcX3nywm2TT and https://dashboard.stripe.com/logs/req_cJYHaH6x7LxdeW
You need to debug your integration and prevent your customer from subscribing twice to the same service.
we are already disabling the button once user clicks, also using idempotency_key
what if the user open two tabs and click the button(only a chance) , is there any way to avoid this situation
The two requestId I shared, have different Idempotency key
you need to find what action in your integration generated two different idempotency_key, while it shouldn't
can it be the chance that the button clicked at the same time from two different browsers
Yes it can be, but that's strongly depends on how you manage your idempotency_keys
Yes, each request will generate a new idempotency key unless you explicitly pass one: https://stripe.com/docs/api/idempotent_requests
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.