#victorconnexion
1 messages · Page 1 of 1 (latest)
Are you using the correct webhook secret and passing the raw request body without modifications?
yes, the secret is correct
const eventObject = await this.stripe.webhooks.constructEvent(body, sig, webhookSecret)
I believe this is due to how the body is parsed
You don't parse the body, you should just pas in the raw body
it body is not longer raw as it was parsed to sns a
the raw body is JSON file ?
The body is data bytes, you don't parse it json or process it before passing it to constructEvent
thanks will investigate further