#kenehermitcoder
1 messages · Page 1 of 1 (latest)
Hello! 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.
- kenehermitcoder, 14 hours ago, 8 messages
I created a checkout session and after the checkout link was sent and I made my payment, the web hook doesn't seem to be working.
I am on the test mode, though.
Can you share the Checkout Session ID? And clarify which webhook event you where expecting to receive but didn't?
Before I do that, here is the error I am getting on my console: "(node:32336) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
(node:32336) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 finish listeners added to [DailyRotateFile]. Use emitter.setMaxListeners() to increase limit
".
Hello, are you still there?
Please be patient, Discord is busy.
And the error you shared seems completely unrelated to Stripe.
But the error code is 400
You didn't share any request ID or event ID or object ID for me to check this.
Here is the event ID: evt_1ODNsDLhCDDmT58KZWbISwnL
I see Stripe sent you the event, and your server responded with a 200 status, meaning everything when fine.
Okay, I think that the problem comes from Stripe not passing an accessToken to the request header sent to the webhook. How can I do this, as accessToken is required to access the webhook
Hello?
Give you give a lot more context about your issue? I still don't understand.
When do you get the error? In your webhook endpoint code when receiving a webhook event?
Can you shre the event ID?
That's the response from the Stripe page.
Here is the event ID: evt_1ODNsDLhCDDmT58KZWbISwnL
But as you see Stripe successfully sent you the event. It's your server that returned a 200 status with an error. So the issue is on your end, not on Stripe's end.
Can you check your server's log to find the full stack trace of the error, to understand which line of code is causing this issue?
Is the event ID I am sending in the correct format expected of an event ID
yes
Okay.
So what I need is for me to be able to add an accessToken to every request I make to the webhook
That's to supply stripe with the accessToken to place in the request header of the web hook each I call it.
What is an accessToken? You can't add anything to the events Stripe sends you.
I mean authorization token to access endpoints on my server.
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
The webhook endpoint should be publicly accessible, you can't add any tokens/headers to the request.
So in that case please, how can I verify the authenticity of the request coming to my server as I need to confirm that the request is coming from my user through Stripe?
What do you mean by "coming from my user through Stripe"?
The webhook requests just come from Stripe.
Okay, how can validate the requests coming to this webhook?
Are you using node?
Yes, I am.