#deadshot7814

1 messages · Page 1 of 1 (latest)

hexed oarBOT
#

Hello! We'll be with you shortly. 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.

pulsar bobcat
#

I am using customer_creation: "always" in setup mode in embedded checkout.

clear cosmos
#

Awesome, was just going to mention that you would need to specify "always"

pulsar bobcat
#

I get the session object and customer value is null

clear cosmos
#

Is this after the checkout session is completed? I think in the newer API versions, customers aren't created until the session is completed

#

If so, can you send me the ID of a session that you are seeing this on?

pulsar bobcat
#

Yes, its before the session is completed

#

Session ID: cs_test_c1Wu3t0jxZKY5ps1FbHxdjIosYoaBWYU1MentRTcqCCi2oLvPjDpekgWFn

clear cosmos
#

Gotcha, so at this point there is no customer object assosciated with the session. The session needs to complete first

#

At which point the customer will be in that field in API requests or webhook events

#

If you want one beforehand you can create the Customer via a separate API call and then pass that ID in to the checkout session create call

pulsar bobcat
#

Well, it will create users even if they do not complete the checkout,

#

Also, if I create one beforehand using separate API without specifying their name and email, and then I pass its id to session object, because it doesn't have name and email, will it save it during checkout?

clear cosmos
#

I am actually not immediately sure. The server is a too busy for me to test at the moment, would you mind testing that in test mode and letting me know what you see?

pulsar bobcat
#

Ok, I am testing

#

i don't know why but it got the email only, there is no name on customer

clear cosmos
pulsar bobcat
#

Yeah, the default for customer name is never update, so yeah it works

#

thank you