Articles on: Payment methods
This article is also available in:

Connecting Square as a payment method

Square is an American financial services platform by Block, Inc. for small and medium-sized businesses. It enables accepting credit card payments using smartphones as POS registers, and facilitates various business operations.

Important: Payment methods are available on websites with paid and Trial subscriptions.

Connecting Square to your online store

Sign up or log in to the existing account on Square:

Follow this link and whether select an existing application or create a new one:

Open your application, then go to the Production tab:

Copy your Access token:

Go to the Your Store section, then to the Payment methods subsection in your site settings on Weblium, and click on the Add button next to Square:

Paste your Access token to the corresponding field (1):

Go back to your Square account, open the Locations tab, and copy your Location ID:

…and paste it in your Weblium account to the corresponding field (2).

To the Success redirect URL (3) and Failure redirect URL (4) fields, you can add links to your custom success and failure pages you had created.

Important: You should paste the links that start from https://.
Tip: To know how to add pages, check this guide. You can also learn how to customize a "Thank you" page in this article.

In the Payment reference field (5), you can specify additional data transferred to Square along with the order. You can click on the Show variables button:

...and copy the variable from there, then paste it into the payment reference field. When ordering, instead of the specified variable, the required value will be substituted (order number, time, site domain, etc.) and transmitted as a payment description to Square:

After all the fields are filled in correctly, save the changes:

Return to the Payment methods section, and in the Connected payment methods subsection, make sure the switch next to the newly added Square is on:

Important: Your online store currency must match the one in your Square account.

Publish your site for the changes to take effect.

Connecting Square to work in test mode

You can connect Square in test mode to test the payment method's operation without using your bank card. To do this, you need to activate the test mode.

Go to your Square account, switch from the Production tab to the Sandbox tab, and copy the Access token (1) there:

Then open the Locations tab and copy your Location ID (2):

Go back to Weblium, activate the Test mode, and paste those credentials to the corresponding fields (1) and (2) :

Important: The non-test mode fields marked with an asterisk below must also be filled in. You can enter the same sandbox credentials there if you have not entered data for real payments.

Save changes and publish your website.

Updated on: 06/21/2024

Was this article helpful?

Share your feedback


Thank you!