#paulC.
1 messages · Page 1 of 1 (latest)
Hello paulC., 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.
• https://discord.com/channels/841573134531821608/1163908625530630175, 1 days ago, 31 messages
• https://discord.com/channels/841573134531821608/1163916131661267045, 1 days ago, 6 messages
• https://discord.com/channels/841573134531821608/1163902585774800916, 1 days ago, 9 messages
Hi there!
Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
I'm confused, what is this request? And I don't see the error you mented in your original message here.
If you want to retrieve a Checkout Session, you should use this endpoint: https://stripe.com/docs/api/checkout/sessions/retrieve
I don't see the failed request in the logs
Yes, I am doing that
`const session = event.data.object;
const webhookDetails = session.customer_details;
console.log("Session ID: ", session.id);
const lineItems = await stripe.checkout.sessions.listLineItems(session.id, { limit: 100 });
console.log("Line Items: ", {lineItems});`
What's the value of session.id in your console log?
cs_test_a1goDiWcBylyH3IdWrA4L2JMxMMr3Zu0jBjZaFTSfSzi5GD0LEd4vquGIG
That looks correct, so I really need the request ID to investigate. Make sure to select "GET requests" on this page in order to see it: https://dashboard.stripe.com/test/logs
I only see GET requests to '/v1/checkout/sessions/completed_webhook_delivered/cs'
Then I'm guessing you are using the wrong API key, which explains why you don't see the logs in your account and why the Chekcout Session ID is not found.
It's possible, I'll check that right now!
You're right! I'm so sorry for that! there's something very wrong about how I manage my keys!
Thanks a lot!
Happy to help 🙂
Also one more quick question: I see that on each checkout succeded there are many requests being sent to the endpoint, only one seems to contain customer and session data. What are the other requests for?
there are many requests being sent to the endpoint
Can you clarify what you mean by this? Do you mean webhook events? If so, which ones?
Yes, webhook events
Basically, after the checkout redirects me to the success url, my endpoint gets lots of requests- but only one has the session data
Which events exactly do you get?
But the only event you should care about is checkout.session.completed
Again I don't understand. Where is this screenshot from? What is it? Etc.
These are the POST requests to the webhook, once a checkout succeeds ...
I don't really understand how much more explicit than that I can be
Where is this screenshot from? From the Stripe dashboard, your browser, your backend, something else?
If it's a webhook event, can you share its ID (evt_xxx)? From what I see this doesn't look like webhook events at all, but without much context it's hard to tell...
This is a screenshot from my server, yes. I shared it in order to show the amount of requests a checkout triggers, and also to show that most of these requests do not contain any data about the session. Hence my question: what's the purpose of additional checkout requests that do not contain session data ?
for example, the checkout.session.completed event happened 10 minutes ago, and I still get these requests
Thanks!
👋 taking over for my colleague. Let me catch up.