#CR

1 messages · Page 1 of 1 (latest)

sacred echoBOT
pseudo oak
#

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)

keen viper
#

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

pseudo oak
#

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

keen viper
#

there is no login system on my site

pseudo oak
#

so everytime they subscribe to a Subscription, the same customer id will be used

keen viper
#

so i can't save any customer data

#

I thought email would be sufficient on stripe's end

pseudo oak
#

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

keen viper
#

hmm i see. is it possible to retrieve Customers by email?

pseudo oak
keen viper
#

ok thanks

keen viper
#

@pseudo oak its showing me no results

#

but i have lots of customers with same email

pseudo oak
#

can you share the request id?

keen viper
#

req_g6zo0XtK7iF6iu

#

its on test mode

pseudo oak
#

can you also paste the response here?

keen viper
#

response is null

#

ah nevermind

pseudo oak
#

umm, the response can't be null, it should be an empty array at least.

keen viper
#

sorry

#

iit works now