#ramon-checkout-customer

1 messages · Page 1 of 1 (latest)

silent gorgeBOT
#

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.

ornate venture
#

AFAIK we don't create customer objects until the checkout session is completed.

daring anvil
#

I see, thanks!

ornate venture
#

NP! Happy to help

daring anvil
#

Just as a follow up

#

I do have a customer id

#

So I assume it was created in the meantime

ornate venture
#

Hmm can you share the ID?

daring anvil
#

What do you require the ID for?

#

It is the format cus_xxxxxxx

#

I have validated using the API that the customer actually exists

#

My custom flow in my project is as follows:

  1. A new checkout order is created
  2. In the callback of that checkout I want to get the customer who completed the checkout.

I only get the customerId back, and not the full customer, even though I expanded the customer property when creating the checkout order

ornate venture
#

I explained we don't create customer object until checkout is completed and you said you do have a customer ID.

Seems like there's some context missing so in order to understand how that customer was created, I would need its ID

daring anvil
#

In the response of the callback of the session checkout I can see the customerId of the customer who did the checkout

#

Ah nevermind this is never going to work

#

Expanding the property upon creating the session will only expand it in the response of that create request

#

not in the callback ofcourse

#

I'll fetch the customer seperately. Thanks for the help!

ornate venture
#

NP! 🙂 Happy to help