π³ Cleanly Booking β Square Payment Setup
The Square Payment gateway allows you to securely accept credit card payments through the Square platform.
1. Enabling Square Payment
- Navigate to:
Cleanly β Settings β Payment & Account β Payment Method - In Payment Gateways, check Square Payment.
- In Default Gateways, optionally select Square Payment to make it the preselected option for customers.
2. Sandbox Mode (Test Mode)
Use Sandbox Mode to test transactions without charging real cards.
- Toggle Enable Sandbox (Test Mode) to ON.
- Fill in the following fields with credentials from your Square Developer Dashboard:
| Field | Description |
|---|---|
| Sandbox Application ID | Your Square Sandbox Application ID |
| Sandbox Access Token | Your Square Sandbox Access Token |
| Sandbox Location ID | Your Square Sandbox Location ID |
3. Live Mode (Production Mode)
When ready to accept real payments, switch to Live Mode by turning Enable Sandbox (Test Mode) OFF.
Then fill in your production credentials from Square:
| Field | Description |
|---|---|
| Production Application ID | Your Square Production Application ID |
| Production Access Token | Your Square Production Access Token |
| Production Location ID | Your Square Production Location ID |
4. Webhook URL
To enable payment status updates, configure the webhook in your Square Developer Dashboard:
bashCopyEdithttp://[your-domain]/wp-json/sqcleanly/v1/webhook
Replace [your-domain] with your actual site address.
5. Display Message
You can customize the confirmation text shown to customers after payment completion in the Display Message field.
Example:
βAfter completing your booking, you will be redirected to the confirmation page.β
β Summary
- Sandbox Mode β Testing transactions safely.
- Live Mode β Processing real customer payments.
- Webhook β Keeps booking/payment status in sync.
- Credentials β Managed through your Square Developer account.