#weismann-webhook-signing

1 messages ยท Page 1 of 1 (latest)

kindred gladeBOT
arctic needle
#

Can you share more details on what is failing exactly?

kindred gladeBOT
#

weismann-webhook-signing

sick imp
#

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

kindred gladeBOT
thorn ridge
#

Hi ๐Ÿ‘‹

That looks like a standard signature mismatch. What stripe client library are you using?

sick imp
#

I've verified my webhook secret multiple times

thorn ridge
#

What does your webhook signature verification code look like?

thorn ridge
sick imp
thorn ridge
#

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

  • body
  • signature
  • Deno.env.get("STRIPE_WEBHOOK_SIGNING_SECRET")

and verify each of them is what you expect?

sick imp
#

im testing right now with nodejs

#

for us to be on the same track

sick imp
#

just for curiosity sake

#

do i need a special webhook secret for stripe CLI...?

thorn ridge
#

You are using the stripe forward command, correct?

sick imp
#

I've found the problem, thank you!

#

completely went over my head

thorn ridge
#

Okay great ๐ŸŽ‰ I'm glad you were able to find it.