#ramon-checkout-customer
1 messages · Page 1 of 1 (latest)
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.
- RamonP99, 2 hours ago, 10 messages
AFAIK we don't create customer objects until the checkout session is completed.
I see, thanks!
NP! Happy to help
Just as a follow up
I do have a customer id
So I assume it was created in the meantime
Hmm can you share the ID?
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:
- A new checkout order is created
- 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
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
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!
NP! 🙂 Happy to help