#paulC.

1 messages · Page 1 of 1 (latest)

meager sonnetBOT
#

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

craggy ivy
#

Hi there!

glad sierra
#

hello!

#

sure!

#

it's req_AdvslKx1AHrqAh

craggy ivy
#

I'm confused, what is this request? And I don't see the error you mented in your original message here.

glad sierra
#

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});`
craggy ivy
#

What's the value of session.id in your console log?

glad sierra
#

cs_test_a1goDiWcBylyH3IdWrA4L2JMxMMr3Zu0jBjZaFTSfSzi5GD0LEd4vquGIG

craggy ivy
glad sierra
#

I only see GET requests to '/v1/checkout/sessions/completed_webhook_delivered/cs'

craggy ivy
#

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.

glad sierra
#

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!

craggy ivy
#

Happy to help 🙂

glad sierra
#

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?

craggy ivy
#

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?

glad sierra
#

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

craggy ivy
#

Which events exactly do you get?

#

But the only event you should care about is checkout.session.completed

glad sierra
craggy ivy
#

Again I don't understand. Where is this screenshot from? What is it? Etc.

glad sierra
#

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

craggy ivy
#

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

glad sierra
#

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!

last fog
#

👋 taking over for my colleague. Let me catch up.