#rohailkamran
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.
- rohailkamran, 2 hours ago, 104 messages
- rohailkamran, 1 day ago, 50 messages
That customer creation doesn't happen until after the session has succeeded
So it is expected to be null when the session is first created
I see...
I want to be able to store the customer id for a user in my db.
To accomplish this, I want to keep using the checkout session like I have been so far, is there a way for me to handle this in a webhook or something?
If not, what is the best approach here?
Yep checkout.session.completed should have the ID of the newly created customer
yes, but when I receive that event in my webhook, I don't know what user that customer_id was created for...
Is there a way I can set a user id on the session? Like in a metadata field?