#as97-customer-duplication

1 messages · Page 1 of 1 (latest)

faint cape
#

Hey! There is not I'm afraid. You can have multiple customers using the same email address

#

What's the use case?

lapis haven
#

We've found that someone is creating multiple subscriptions with the same product/price repeatedly, and being charged multiple times instead of once

faint cape
#

You'd need to handle that on your side. Do you have some kind of auth/user implementation? Are you associated the Stripe customer with those users?

lapis haven
#

yes, we do have that

faint cape
#

How are users able to create multiple Stripe customers then?

lapis haven
#

I think it's because our user management system only interacts with the customer after they've made a subscription. Our flow is:
Landing page view > Pre-built Stripe Checkout > Account Creation

#

We've seen multiple subscriptions being created on the pre-built stripe checkout with the same email and card details, leading to the same card being charged multiple times - my best guess is that the customer is refreshing a lot on the pre-built checkout page

faint cape
#

You need to prevent Checkout Session creation for your customers who are already subscribed

lapis haven
#

How could we best do that? We can only identify users in our flow after the subscription has been created

faint cape
#

Can you not check to see if your user has an active subscription or an assigned Customer ID cus_xxx?

lapis haven
#

Unfortunately not, as we are using pre-built checkout flow. Plus, they are directed to this checkout flow from a landing page on which there is no authentication

faint cape
#

Checkout doesn't determine whether or not the user has a pre-existing subscription I'm afraid

#

That's up to your implementation to prevent additional subscriptions

lapis haven
#

Cool, thanks