> ## Documentation Index
> Fetch the complete documentation index at: https://86d.store/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Square

> Evaluate the Experimental Square Integration for 86d.store: the Payments API, refunds, and signed webhooks.

<Warning>
  **Experimental.** Use sandbox credentials. Keep its event endpoint private until provider verification, retries, and duplicate events pass your tests. See [maturity levels](/docs/resources/versioning).
</Warning>

The Square [Module](/docs/concepts/modules) implements the current `PaymentProvider` interface from the [Payments Module](/docs/modules/payments) using the Square Payments API. Its [Webhook](/docs/resources/glossary#webhook) uses Square's notification URL and request-body signature scheme.

**Source:** [`modules/square`](https://github.com/86d-store/86d/tree/main/modules/square) · **npm:** [`@86d-store/square`](https://www.npmjs.com/package/@86d-store/square)

## Installation

```sh theme={null}
86d module add square payments
```

## Configuration

Add the Module to `config.json`, then set the `SQUARE_*` environment variables. Do not put the access token in source or `config.json`. See [Environment variables](/docs/configuration/environment-variables).

## Webhook setup

In the [Square Developer dashboard](https://developer.squareup.com/apps), open your application, go to **Webhooks**, and create a subscription for `payment.created` and `payment.updated` pointing at:

```text theme={null}
POST https://your-store.com/api/square/webhook
```

## Related pages

* [Payments](/docs/modules/payments)
* [Set up a payment provider](/docs/guides/payment-integrations)
* [How Connections route provider work](/docs/concepts/connections)
* [Versioning and maturity](/docs/resources/versioning)
* [Glossary](/docs/resources/glossary)
