Webhooks management shopifyApp - shopify-app-express

Webhooks management shopifyApp - shopify-app-express

dsn
Shopify Partner
8 0 5

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?

 

Replies 2 (2)

Ripudaman
Shopify Partner
1 0 1

Facing the same issue if someone can help 

 

abdulrehmanali
Shopify Partner
1 0 0

I am facing the same issue. Someone from shopify, please help.