Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Square module implements the PaymentProvider interface from @86d-app/payments against the Square Payments API. The webhook endpoint verifies HMAC-SHA256 signatures with constant-time comparison and replay protection. Source: modules/square · npm: @86d-app/square

Installation

86d module add square payments

Configuration

square({
  accessToken: "...",
  applicationId: "...",
  locationId: "...",
  webhookSignatureKey: "..."
});
See Environment variables for the corresponding SQUARE_* variables.

Webhook setup

In the Square Developer dashboard, open your application, go to Webhooks, and create a subscription for payment.created and payment.updated pointing at:
POST https://your-store.com/api/square/webhook