#Jaxon-webhooks

1 messages · Page 1 of 1 (latest)

gusty granite
#

hi there

#

it means that something is wrong either

  • you used the wrong webhook signing secret whsec_xxx for the endpoint
  • you didn't pass the exact raw request payload from Stripe to the constructEvent function
#

you should add some logging to debug which secret you use and what the payload looks like and compare that to what you see in your Stripe dashboard for the event

chilly coyote
#

Should the body of the request be a string

gusty granite
#

yep!

#

a common problem is you use a framework that converts the body to a JSON object first, but you need the raw body. The link in the error message talks about that.

chilly coyote
#

So a JSON string is valid. But a parsed JSON dictionary isn't?

#

Great! Thank you my issue is fixed. 🙂