#stanmancan

1 messages · Page 1 of 1 (latest)

main prawnBOT
minor hawk
#

hello! the customer.created event should contain the email, so you can use that as the key to link them up in your DB

chrome trench
#

Yeah it does; that's the only way though?

#

I was hoping the client_reference_id would be available or something

minor hawk
#

ah, i misunderstood, i thought the core of the question was referring to linking the created customers with your users

chrome trench
#

yeah it is

#

don't get me wrong, I can use the email address to look them up again, I was just surprised that the client_reference_id didn't get passed back or something

minor hawk
#

i think there's some confusion here. The client_reference_id is used in the Checkout Session. it'll be returned in all corresponding Checkout Session objects e.g. checkout.session.completed, checkout.session.created, etc

chrome trench
#

I gotcha; thanks

minor hawk
#

anything else i can help with?