Skip to main content
webhooks.square() verifies the HMAC-SHA256 signature Square sends in x-square-hmacsha256-signature on every request.
/trigger/square.ts

Set up Square

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. Add the webhook URL as a webhook in Square and select the events your subscribers need. See Square’s webhook docs for where its webhook settings are.
  3. Copy the signing secret Square shows for the webhook, then choose Set signing secret on the Trigger.dev endpoint.
  4. Send a test event from Square, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.