#vlady-_unexpected
1 messages ¡ Page 1 of 1 (latest)
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.
- vlady-_best-practices, 23 minutes ago, 12 messages
- vlady-_code, 2 hours ago, 11 messages
đ 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/1240017116669804586
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey there, again!
I'm really sorry to bother with so many threads.
Sure, here is an ID where it seems it's been passed:
req_26mta7JAPCvoMk
Server side:
app.get('/payments/gateway/success', async (req, res) => {
const session = await stripe.checkout.sessions.retrieve(req.query.session_id);
const customer = await stripe.customers.retrieve(session.customer);
console.log(customer)
res.send(`<html><body><h1>Thanks for your order, ${customer.name}!</h1></body></html>`);
})
response: <image>
Although I checked the passed values through console in the client, it is passed right.
Or is it not passed in the customer, and rather in the session?
I just realised that
Yeah you're looking at Customer object instead of Checkout object
Yeah.. it is passed in the session's metadata.
I am really sorry, I feel bad for wasting your time 