Hi Jasim,
Thanks for your explanation, I am currently doing similar approach to
sync the data in a mysql table and running the look. But I am
requesting if you can add the provision ( search customer by email and
return a 404 or customer object if found).
The app I am developing is using stripe merchant app, once merchant
connects, we put a queue to sync his stripe customers into our
database.
The next step is product purchase which uses email to identify the
buyer as stripe customer, we are doing look up in the customers table
as pointed above, if stripe customer found, we are charging his
default card, if not found we are sending him to a stripe checkout
popup where he enters his credit card, submitting which a stripe
customer is created and synced in our customers table for next time
check.
The system works fine without problem except the below.
When there is more than 10k customers for an account, it takes time to
sync all customers, think of a case when a buyer who has not yet
synced in the lookup customers table, we are showing him stripe
checkout which created a new customer.
So now we have two customers account in our lookup table for same email !
We could have avoided that if there was a customer lookup in api via
email, it may return multiple accounts, we will take the first one.
I hope I have clarified my issue and requirement
Thanks in advance
The