Square
Connect Square to PayLexer to accept card payments, digital wallets, and point-of-sale transactions across the US, Canada, UK, Australia, and more.
Square is a US-based payment processor operating in the United States, Canada, United Kingdom, Australia, Japan, France, Spain, and Ireland. It supports card payments, digital wallets, and point-of-sale integration for businesses of all sizes.
| Type | Details |
|---|---|
| Supported Regions (Merchant Accounts): | United States, Canada, United Kingdom, Australia, Japan, France, Spain, Ireland |
| Supported Currencies: | USD, CAD, GBP, AUD, JPY, EUR |
This guide walks you through connecting Square to PayLexer, configuring API credentials and webhooks, and testing transactions before going live.
Supported Features
-
One-time payments
-
Refunds
-
Real-time payment status updates
-
Multiple payment methods (cards, Apple Pay, Google Pay, Cash App Pay)
-
Point-of-sale integration
Before You Start
Make sure you have:
-
Square Account: Don't have an account? Sign up for Square →
-
PayLexer Account: Required to configure the integration. Create your account →
-
A website where you want to integrate
Looking for a different payment processor? View all supported gateways →
Configuring Square
You need an Application ID, Access Token and Location ID from Square for this integration.
Getting API Credentials
-
Log in to your Square Developer Dashboard
-
Go to Credentials tab
-
Copy your Application ID and Access Token
-
Go to Locations tab
-
Copy your Location ID
💡Note: Square provides separate credentials for Sandbox (Test) and Production (Live) modes. Toggle between "Sandbox" and "Production" tabs to access different credentials.
Adding Credentials to PayLexer
-
Log in to your PayLexer dashboard
-
Navigate to Payment Gateways
-
Click on Square
-
Add the credentials you copied above
Understanding Live/Production and Sandbox Settings:
Here you will find settings for two environments:
-
**Live / Production (Mandatory)**These credentials are used for real transactions. This field is required and cannot be empty, even when testing.
-
**Test / Sandbox (Optional)**These credentials are used for testing only. No real money is processed.
How PayLexer Selects Credentials?
PayLexer automatically switches credentials based on your platform mode:
-
Debug/Test mode ON → Test credentials are used
-
Debug/Test mode OFF → Live credentials are used
You do not need to manually switch keys once both environments are saved.
-
Click Test Connection to verify your credentials
-
Click Save Configuration
Configuring Webhooks (Mandatory)
Webhooks enable real-time payment updates. While not required, they significantly improve reliability.
Benefits of Webhooks
-
Instant payment status updates
-
Automatic refund processing
-
Real-time payment event notifications
-
Dispute notifications
Setting up Webhooks
-
Log in to your Square Developer Dashboard
-
Go to Webhooks tab and click on Subscriptions
-
Click Add subscription
-
Enter Webhook name
-
Copy Webhook URL from PayLexer
-
Paste into Notification URL
-
Select Events
-
Click Save
-
Click on the webhook Copy the Signature key shown after saving
-
Paste it into PayLexer
-
Click Save Configuration
Integrate Square to Your Website
If you have already added and configured your site, you can enable Square in your existing setup.
To add to your existing site:
-
Navigate to Websites
-
Click on the Edit Icon of your added website
-
Click on the checkbox to enable Square to the added website
If you haven't added a website yet, Continue to Add Your Website →
Troubleshooting
-
Verify Application ID and Access Token are correct
-
Ensure you're using the right environment credentials (Sandbox vs Production)
-
Re-run Test Connection in PayLexer
-
Confirm webhook endpoint is created in Square
-
Check Signature Key matches exactly
-
Verify events are selected in webhook configuration
-
Review webhook delivery logs in Square Developer Dashboard
-
Verify Square is enabled in your integration
-
Ensure credentials match the environment (Test vs Live)
-
Confirm your Square account is activated for payments
Best Practices
-
Test in Sandbox before enabling Production mode
-
Validate the first live transaction after switching
-
Confirm webhooks are working
-
Monitor the gateway dashboard for failed payments
-
Keep API credentials and secrets secure
-
Use separate Sandbox and Production credentials
-
Ensure Debug/Test mode is enabled during testing, use only official Square test cards, and save Sandbox credentials in PayLexer – not just Production credentials
FAQs
Production credentials are mandatory to save the configuration. Sandbox credentials are optional but highly recommended so you can safely test payments before going live.
Check the Debug Mode setting in your platform (e.g., WP Travel Engine Settings → Payments). When Debug Mode is ON, PayLexer uses your Sandbox credentials. When OFF, it uses Production credentials.
Transactions appear in three places: your platform's booking/order pages (e.g., WP Travel Engine → Bookings), PayLexer Dashboard → Orders, and Square Dashboard. All three show the same transactions with different IDs.
Payments will still process, but status updates may be delayed. Check webhook logs in Square Developer Dashboard → Webhooks to troubleshoot. Configure webhooks properly to ensure real-time updates.
Still Have Questions?
-
PayLexer Support: Contact Support
-
Square Support: Square Help Center
Last updated Apr 3, 2026
Built with Documentation.AI