#vlady-_unexpected

1 messages ¡ Page 1 of 1 (latest)

shrewd pastureBOT
untold moatBOT
#

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.

shrewd pastureBOT
#

👋 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.

autumn igloo
#

Hello
Can you share an example request ID?

round leaf
#

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

autumn igloo
#

Yeah you're looking at Customer object instead of Checkout object

round leaf
#

Yeah.. it is passed in the session's metadata.
I am really sorry, I feel bad for wasting your time facepalm