#CR
1 messages · Page 1 of 1 (latest)
hello! that's expected behavior, Stripe doesn't de-duplicate customers with the same email for you at the moment. So the customer portal will always show the latest customer with that particular email (if you're passing in an email to create the customer portal)
hmm so any clues how i can achieve no-duplication?
I'd like that one customer can have 1 email only
so that all their subscriptions are visible on the same customer portal
you'll need to implement that logic on your own - when a customer logs in to your site, they should only have one Stripe Customer ID linked to their account
there is no login system on my site
so everytime they subscribe to a Subscription, the same customer id will be used
so i can't save any customer data
I thought email would be sufficient on stripe's end
it's sufficient to collect payment and allow them to use the customer portal, except we currently don't do de-duplication
i'm afraid there's no other way right now. You'll likely need to implement some kind of mapping or login system to ensure uniqueness
hmm i see. is it possible to retrieve Customers by email?
yep, you can list all customers with a particular email : https://stripe.com/docs/api/customers/list#list_customers-email
ok thanks
can you share the request id?
req_g6zo0XtK7iF6iu
its on test mode
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
can you also paste the response here?
umm, the response can't be null, it should be an empty array at least.