> ## Documentation Index
> Fetch the complete documentation index at: https://developers.paysum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Square

> Accept cards, Apple Pay, Google Pay and Cash App Pay on a Square payment link.

## Set it up

**1. Create a Square app**

Sign in to the Square Developer Console and create an application for your own business. You only need it to issue credentials for your account.

**2. Copy the access token and location**

Open the app’s Credentials page and copy the Production access token (or the Sandbox token for testing). Then open Locations and copy the ID of the location that should receive payments.

**3. Connect in the dashboard**

In the dashboard, open Payments → Payment setup. Choose Square, paste the access token and location ID, pick Production or Sandbox to match the token, then select Connect. The token is checked before it is saved.

**4. Add the webhook**

Copy the webhook endpoint shown in the Square dialog. In your Square app, open Webhooks → Subscriptions, add the endpoint for payment.updated, and paste the subscription’s signature key back into the dialog.

**5. Place a test order**

Buy a product with Square selected. In Sandbox, use the Visa test card 4111 1111 1111 1111 with CVV 111 and any future expiry.

## Use matching credentials

A Sandbox token only works with the Sandbox environment and a Production token only with Production. A mismatch shows up as an authentication error when you connect.

## Turn off tipping

Square can add an automatic tip on payment links in some regions, which changes the amount charged. Keep tipping off in your Square checkout settings so the buyer pays the order total.

## Currency

Square charges in your location’s currency. Set your store currency to match the location you connected.

## If something does not work

> [!NOTE]
>
> If Connect fails, check that the token and environment match and that the location ID belongs to the same account. If buyers pay but orders stay pending, check that the webhook subscription includes payment.updated and that the signature key was pasted into the dialog.

Still stuck? [Contact support](https://docs.paysum.io/support) with the store, the page, and any order or request reference.

## Next steps

> [card] [Payment methods](https://docs.paysum.io/payments)
>
> Connect the accounts and wallets buyers use to pay your store.

> [card] [The buyer checkout flow](https://docs.paysum.io/checkout-flow)
>
> Understand the steps from a product selection to a paid order and delivery.

> [card] [Orders and invoices](https://docs.paysum.io/orders)
>
> Find a transaction, inspect its status, and troubleshoot payment or delivery.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.