We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Why does my webhook hmac verification fail with Node.js?

Why does my webhook hmac verification fail with Node.js?

cloudify
Shopify Partner
2 0 0

Hello 

I am trying to validate webhook hmac verification with just nodejs but always getting verification failed. I am passing valid app secret key. 

this is how my code looks
var hmacByCrypto = crypto
.createHmac('sha256', client_secret)
.update(JSON.stringify(context.params))
.digest('base64');

I am receiving body in context.params field

Replies 0 (0)