#akashpatil7596_webhooks

1 messages ¡ Page 1 of 1 (latest)

tropic quailBOT
#

👋 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/1233349909613117471

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

random iceBOT
#

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.

meager junco
#

assign me someone please

obtuse bough
#

hi there!

#

can you share an Event ID (evt_xxx) with that issue?

#

but in general a 400 error means there is some issue on your own server

#

so you would need to check the error logs in your server to understand the issue

meager junco
#

evt_1P9l5hSDdRXoIRTql2UPotmb

#

and to be clear. we_1P9karSDdRXoIRTqoQhdS6jz this is the webhook key I'm using, is it right?

obtuse bough
#

what do you mean by "webhook key I'm using"?

meager junco
#

webhook key to validate

return this.stripe.webhooks.constructEvent(req.rawBody, signature, 'we_1P9karSDdRXoIRTqoQhdS6jz');

obtuse bough
#

nope, we_xxx is the webhook ID. here you need to set the webhook secret, which looks like whsec_xxx

meager junco
#

oh, where can I get that?

obtuse bough
#

in the dashboard, when looking at the webhook endpoint

meager junco
#

Okay I tried that, still getting 400

obtuse bough
#

in order to debug this, you need to check your server logs as I mentionned in the beginning.

meager junco
#

I don't know. I already did this in local listeners, but this doesn't seems to work for Hosted endpoints