Connect Square to AXL to accept payments for your products and services. This guide explains how to create or open a Square application, find the Application ID, Access Token, and Location ID for the same environment, and enter them in an AXL payment gateway.
Create a Square Account
You need a Square account and an application. Follow the current Square account and application guide. If you already have both, sign in and open the existing application for this integration.
For a new account, provide the personal, country, business and application details Square requests. Review its terms and complete the sign-up prompts. Registration can create your first application. If you need a separate application later, use the Applications page described below.
The Square screenshots below are older interface references in English. They illustrate the relevant controls; they are not new authenticated dashboard captures.
After you register, sign in to the Square Developer Console and open Applications. This is where you create or open the application whose credentials AXL will use. The earlier dashboard below shows an App integrations entry; use the current Developer Console path if your dashboard differs.

Create a new application from Applications, or open an existing application for this integration. The earlier interface below labels the creation control New Application.

Enter a name for your application and click "Create Application".

Open the application's Credentials page and select Sandbox for testing. Copy the Sandbox Application ID and Sandbox Access Token. Production credentials are separate. The Access Token is confidential; the Application Secret used for OAuth is a different value and is not the Access Token required by this AXL form.

Find the Location ID on the application’s Locations page in the Square Developer Console. Copy the Application ID, Access Token, and Location ID from the same environment. Keep Sandbox credentials for tests; use Production credentials for live payments.
Before taking live payments, complete Square's account activation and use the production set for the same seller and location. A sandbox test does not activate the seller account.

Connect Square to AXL
Next, connect the payment gateway to AXL so your customers can pay you through the payment forms in your account.
In AXL, go to "Settings" → "Payment Gateways" and click "Add Payment Gateway". If you haven't added a gateway yet, the list of gateways opens right away.

Select "Square" from the list. In the panel that opens, fill in the fields:
Title. Enter a name for this payment gateway.
Description. Add a description of this payment gateway. Customers see it on your website.
Payment Button Text. Enter the text for the payment button on your website.
Show on Website. Select the checkbox to offer this payment method on your website.
Save card details for future payments where supported. Enable this for AXL subscription or upsell flows that need to reuse a supported card. After a successful Square payment, AXL attempts to save a card on file for that customer; a completed payment alone does not guarantee that card saving succeeded. Keep this option enabled when testing card saving, use matching sandbox credentials, and follow Square's Sandbox card-on-file scenarios.
Currency. Select the currency you want to accept payments in. If you sell in several countries, you can set a different currency for each payment gateway. For example, you can sell courses in dollars through one gateway and accept euros through another. Choose one of the currencies supported by this gateway; the form shows the available options.
Application ID. Enter the Application ID you copied from Square.
Location ID. Enter the Location ID you copied from Square.
Access Token. Enter the Access Token you copied from Square.
Test Mode. Select this checkbox when all three values—Application ID, Location ID, and Access Token—come from Sandbox. For live payments, use the matching production values and clear Test Mode after Square activation.
Show pop-up window. Select the checkbox to open the payment in a pop-up window when a customer pays for an order, instead of sending them to a separate page.


When the required fields are complete, click Create to save the gateway. Square then appears in the gateway list. Saving the form alone does not confirm Square activation, a successful payment or successful card saving.