#sithu-khant_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ 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/1346998158970064936
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can you please share an Event ID with me so I can dig into it?
okay, please wait
Here: evt_1QzS4tPGr62rnrily67bPRzo
I am not seeing it in my terminal
Hi there, any update?
Hi! If you look at the webhook attempts, you'll see that your server responded with an error about signature validation: https://dashboard.stripe.com/test/events/evt_1QzS4tPGr62rnrily67bPRzo
This is my webhook code, could you please review it?
I am following the method of Theo (t3.gg) from his stripe recommendations
Apologies, I got sidetracked. Let me have a look.
The problem isn't the webhook code, it's where and how you are creating the Session, which will have an impact on whether it needs an Account webhook or a Connect webhook.
so, @molten escarp, how to fix that?
It is bagging me a lot...
@rich ermine?
Hi @gloomy delta let me take over this thread
please
I see that your server returned an error about signature verificaiton, you can follow this doc to resolve this error https://docs.stripe.com/webhooks/signature
I don't get it,
I added my secret api key and webhook sercet correctly
Then it's likely that your handler didn't receive the raw request data. https://docs.stripe.com/webhooks/signature#retrieve-the-raw-request-body
I am using Hono, and in the Hono docs, it suggested like this to get raw body: https://hono.dev/examples/stripe-webhook
btw: could you please ping me when you reply to notify me? because I am still coding
Likt his: const body = await c.req.text();
I'm not familiar with hono and I'd recommend you reach out to hono to confirm.
How about Svelte?
Still getting this error
Have you checked your STRIPE_WEBHOOK_SECRET ? can you make sure it's the one that you retrieve from the Dashboard, not stripe CLI?
yes it is
but I am using Sandbox
Did you get the webhook secret from the sandbox dashboard?
And you might want to temporarily log the singautre and webhook secret in your webhook handler to confirm they are valid
yes
okay let me do that
I got this.
btw, don't worry, I don't mind if you see the test api key and webhook sercet. I will move to live mode and delete that test sandbox after that.
They are correct!
When I test with local webhook sercet and test in localhost. It also doesn't show my logs in termnal
But not seeing any incoming requests in my termanl
I surely used that local webhook when I tested in localhost.
Discrod is a public place and you just leaked your secret key here, I'd suggest you to roll it asap
I don't have access to your API secret key either so you are the only one who can verify it.
You need to do a stripe login first
I loggined
Use stripe login and select your sandbox in the webpage.
so, do I have to re login again and again everytime I create a new sandbox?