Hello, when trying to listen to a webhook using the node template configuration, I always get Failed to process webhook: Error: Could not validate request for topic checkouts/update. Webhook configuration I’m using is:
app.post(
shopify.config.webhooks.path,
// shopify.processWebhooks({ webhookHandlers: GDPRWebhookHandlers })
shopify.processWebhooks({ webhookHandlers: webhookHandlerIndex })
)
And the webhookHandlerIndex is:
CHECKOUTS_UPDATE: {
deliveryMethod: DeliveryMethod.Http,
callbackUrl: "/api/webhooks",
callback: async (topic, shop, body, webhookId) => {
const payload = JSON.parse(body);
console.log(payload)
}
}
Which is the example configuration Shopify provides for mandatory GDPR webhooks, did anyone face this issue and solved it? how?