#weismann-webhook-signing
1 messages ยท Page 1 of 1 (latest)
Can you share more details on what is failing exactly?
weismann-webhook-signing
the function used to validate webhook signature
No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?
I'm testing with stripe CLI tool
Hi ๐
That looks like a standard signature mismatch. What stripe client library are you using?
im using esm for stripe-node which https://esm.sh/stripe?target=deno
I've verified my webhook secret multiple times
What does your webhook signature verification code look like?
Sorry, what does the actual code look like? Are you using this example?
https://stripe.com/docs/webhooks/quickstart?lang=node
i'm using deno so i'm using this example
https://github.com/stripe-samples/stripe-node-deno-samples/blob/main/webhook-signing/main.js
Okay. I'm not familiar with Deno. But you said verified the signature. I assume that means the value that is loaded in this script, not just what is stored in an .env file somewhere.
I know you likely already did this but could you log
bodysignatureDeno.env.get("STRIPE_WEBHOOK_SIGNING_SECRET")
and verify each of them is what you expect?
Yeah, i've already verified them all and tried both bytes and string formats for body but it doesnt work
im testing right now with nodejs
for us to be on the same track
i copied a part of the example on the official page, this ^^
just for curiosity sake
do i need a special webhook secret for stripe CLI...?
You are using the stripe forward command, correct?
oh god, i completly forgot the webhook secret for testing is not the same for the actual webhook
I've found the problem, thank you!
completely went over my head
Okay great ๐ I'm glad you were able to find it.