#DanTheGoodman-guest-customers

1 messages · Page 1 of 1 (latest)

drowsy harbor
#

Hi there

#

codename_duchess needed to step away but I'm happy to take a look

jovial spire
#

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

drowsy harbor
#

Gotcha. Taking a look

jovial spire
#

I see the customer as a customer, and they have guest payments connected

#

let me try with a. novel email

drowsy harbor
#

Yep that looks right

#

Let me know what happens when you try with a unique email

jovial spire
#

yep 1 min

#

same email, 2 diff names

#

no guest account created

drowsy harbor
#

Customers are based on email though

jovial spire
#

yeah I'd expect a single guest customer to be made though

#

that both those payments would be under the same for

drowsy harbor
#

Oh I thought there was already a customer for that email

#

But yeah looks like there isn't. Looking more

jovial spire
#

yeah I assume existing emails will just join of the existing ones under their email

drowsy harbor
#

Sorry, things got busy. Will circle back in a minute

jovial spire
#

no problem!

drowsy harbor
#

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

jovial spire
#

maybe the payment method because it was a test card?

#

interesting, was that on the checkout session object?

drowsy harbor
jovial spire
#

customer id

drowsy harbor
#

You can see the Relate payments when viewing one of those PaymentIntents

jovial spire
#

ah duh

drowsy harbor
#

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

jovial spire
#

ok hmm not sure how to test that on staging then

#

because we have a millino accounts using that lol

drowsy harbor
#

What exactly do you want to test?

jovial spire
#

@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

drowsy harbor
#

Ah okay

#

So you want to know, based on the outcome of the Checkout Session, what the associated Customer or Guest Customer is

jovial spire
#

yeah ultimately 2 goals:

  1. Stop making a millino stripe customers
  2. Link them all by email or payment method (which ever really, just need to have a constant one linked when we get the webhook)