#cassaveties_customer-duplicate

1 messages ¡ Page 1 of 1 (latest)

fallow coveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220846312417792022

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

modern remnantBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

flat flare
#

cassaveties_customer-duplicate

gritty mountain
#

I have more info. The backend call is doing this:

StripeCustomer::create(
[
'address' => [
'country' => $customerCounty,
'postal_code' => $customerPostalCode(),
'ip_address' => $customerIp,
]
'email' => $email,
'payment_method' => $stripeToken // or 'source' => $stripeToken
]
)

flat flare
#

Hey @gritty mountain ! We (Stripe) usually don't have any "de-duplucation" of Customer at all

#

You can create 2 or thousands of Customers with the exact same email address if you want to

gritty mountain
#

What we think we're seeing is that when that call is done, sometimes Stripe returns a previously existing customer ID. Is that possible?

flat flare
#

no

#

My gut tells me you use a third-party SDK for your Stripe integration and maybe they de-duplicate?

gritty mountain
#

No we're using the Stripe API

flat flare
#

Yours says StripeCustomer::create() and that's not what our API looks like

#

Do you have an example Customer id I can look at?

gritty mountain
#

cus_P6srQFKpPS7I9w

flat flare
#

I'm fairly certain something in your own code/stack is not creating a real Customer because you already have on with that email

#

it's definitely not a Stripe feature I am certain of that