webhooks.square() verifies the HMAC-SHA256 signature Square sends in x-square-hmacsha256-signature on every request.
/trigger/square.ts
Set up Square
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - 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.
- Copy the signing secret Square shows for the webhook, then choose Set signing secret on the Trigger.dev endpoint.
- 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.

