#DanTheGoodman-guest-customers
1 messages · Page 1 of 1 (latest)
no worries, basically on other threads that i couldnt respond to the issue is we had a new customer being created every time with checkouts. We dont have people make an account so we wanted to use guest checkouts so we can see their purchases all for the same email
So per suggestions I set CustomerCreation: stripe.String(string(stripe.CheckoutSessionCustomerCreationIfRequired)), on the checkout session creation and the above links show that no customer was created, but I do not have that as a geust customer in our test dashboard
Gotcha. Taking a look
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I see the customer as a customer, and they have guest payments connected
let me try with a. novel email
yep 1 min
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
same email, 2 diff names
no guest account created
Customers are based on email though
yeah I'd expect a single guest customer to be made though
that both those payments would be under the same for
Oh I thought there was already a customer for that email
But yeah looks like there isn't. Looking more
yeah I assume existing emails will just join of the existing ones under their email
Sorry, things got busy. Will circle back in a minute
no problem!
Huh interesting... so it looks like those payments are being considered to be related to cus_MO9R6vw9jjpP3J
I admit I thought we only matched on email for guest customers, but that may be incorrect.
We may use some other logic to match here with already existing customers
maybe the payment method because it was a test card?
interesting, was that on the checkout session object?
Which part?
customer id
You can see the Relate payments when viewing one of those PaymentIntents
ah duh
Okay I just confirmed that the payment method itself is taken into account when determining how to match for customer/guest customer
So yeah, it is actually beyond just the email.
And we do take various factors into account
Ah we actually lay this out here: https://support.stripe.com/questions/guest-customer-faq
ok hmm not sure how to test that on staging then
because we have a millino accounts using that lol
What exactly do you want to test?
@drowsy harbor with the guest customers that are merged, do we get that guest customer id?
Basically we want to get that guest customer ID so in our DB we can join all their purchases when they eventually make an account
and link retention to single customers within mixpanel
Ah okay
So you want to know, based on the outcome of the Checkout Session, what the associated Customer or Guest Customer is
yeah ultimately 2 goals:
- Stop making a millino stripe customers
- Link them all by email or payment method (which ever really, just need to have a constant one linked when we get the webhook)