@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Function createExpressWebhookHandler

    • Create Express middleware for handling Clover webhooks.

      Mount the raw body parser on the webhook route so the signature can be verified against the exact bytes:

      app.use('/webhook', express.raw({ type: 'application/json' }));
      app.post('/webhook', createExpressWebhookHandler({ signingSecret, handlers }));

      Parameters

      Returns RequestHandler