#gunwantkumar_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1303241447256096798
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
https://docs.stripe.com/checkout/fulfillment you should listen to checkout.session.completed event and retrieve customer ID from the checkout session object
Okay, Let me check it
I getting null value for the customer.
What's the event ID?
Same for the charge getting null value for the customer.
Here is my charge id: ch_3QHg28GHf1WlTIAf1PrLIDLS
evt_1QHg2AGHf1WlTIAfXDxDol6m
That's because the checkout's mode is payment and customer_creation is if_required
If you want the checkout session to always create new customer, set customer_creation to always
But in this case, Its create always new customer, right?
What case?
With "customer_creation" parameter in the checkout session API.
Yes if you set customer_creation to always
Is there any way if i have use same email address its used existing customer id.
Because its create always new customer with the same email so..
No, you should just specify customer ID when creating a checkout session.
Thank you but in my case we mount the element first after that customer/user enter full details.