# How to Integrate Square with Paymattic in WordPress?

> You can easily integrate the Square payment gateway with Paymattic. Square is a secure and fast payment processing platform that accepts credit cards and debit cards payment from your website. Integrate Square with Paymattic and let your customers easily make online transactions through Square. Let

- URL: https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/
- Markdown: https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/index.md
- Modified: 2024-10-04

---

# How can we help you?

Popular Search subscriptionstriperecurringtheuser

View Categories

[Square](https://squareup.com/us/en) is a globally recognized payment gateway to integrate with [Paymattic](/). This article will guide you through **configuring** **Square**in your **WordPress** **Site** with the **Paymattic** plugin.

## Configuring Square Payment Method #

To learn how to configure the Square payment gateway through Paymattic, follow the steps with screenshots below –

First, go to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Square**tab from the left sidebar, and the **Square Settings** page will open.

![](https://paymattic.com/wp-content/uploads/2023/04/Square-Payment-Gateway-Paymattic-scaled.webp)

Select any **Payment Mode** between **Test** (for test payments) and **Live**(for real payments) as both options follow the same configuration process, e.g., I choose the **Test Mode**.

Then, you need to obtain the**Access key** and **Location ID** from your **Square Account**.

![](https://paymattic.com/wp-content/uploads/2023/04/Payment-Mode-Access-key-Location-ID.webp)

### Get the Access Token and Location ID from Square #

To learn how to get an **Access Token**and **Location ID**from your [Square](https://squareup.com/us/en), follow the steps with screenshots below –

First, log in to your Square account from [here](https://squareup.com/login?app=developer&return_to=https://developer.squareup.com/). If you do not have an account, sign up from [here](https://app.squareup.com/signup/en-GB?return_to=https%3A%2F%2Fdeveloper.squareup.com%2F&v=developers).

To get the credentials for configuration you need to create an app in your Square account. To learn how to create an Application, follow accordingly.

Once you log in to the **Square Dashboard**, go to the **Account** section from the **Navbar**, and click the **Developer Dashboard** tab.

![](https://paymattic.com/wp-content/uploads/2023/04/Account-Developer-Dashboard-scaled.webp)

Click the **Plus** **Icon** under the **Applications** tab to create a new application.

![](https://paymattic.com/wp-content/uploads/2023/04/Plus-icon-under-Applications-scaled.webp)

Now, give a **Name** to your application and click the **Next** button.

![](https://paymattic.com/wp-content/uploads/2023/04/Name-your-application-scaled.webp)

Check the **Accept Payments** box and click on the **Next** button.

![](https://paymattic.com/wp-content/uploads/2023/04/Accept-Payments-option-scaled.webp)

Select your desired option from the popup with the Find your Audience option, and click the **Complete** button.

![](https://paymattic.com/wp-content/uploads/2023/04/Myself-option-scaled.webp)

After creating the application, you will find the**Access Key** in the **Sandbox Access Token**field under the **Credentials**. Copy it.

![](https://paymattic.com/wp-content/uploads/2023/04/Copy-the-Access-Token--scaled.webp)

Now, go to the **Locations** tab from the left sidebar, and copy the **Location ID.**

![](https://paymattic.com/wp-content/uploads/2023/04/Copy-the-Location-ID-scaled.webp)

Go back to **Payment Gatewa**y from the **Paymattic Navbar**, click the **Square**tab, and paste the copied **Access Token**and**Location ID**into the **Access key** and **Location ID**fields respectively.

Finally, press the **Save Settings** button and your Square account will be integrated with Paymattic for your WordPress Site.

![](https://paymattic.com/wp-content/uploads/2023/04/Paste-the-Access-token-Location-ID-scaled.webp)

### Add Square Webhooks #

To learn how to configure the **Square Webhooks** to your WordPress Site, follow the steps with the screenshots below –

To ensure your Square dashboard and Paymattic dashboard are in sync and fully function for all kinds of payment (one-time/recurring), you must configure the Square Webhooks.

First, copy the**Webhook URL** and recommended **Webhook Events**forsmooth transactions based on **Square** **Data** related to **One-time/Recurring** payments.

You will need them later to configure **Square** **Webhooks** to your **WordPress** **Site**.

![](https://paymattic.com/wp-content/uploads/2023/04/Webhook-URL-and-Events.webp)

Now, go to the [Square Dashboard](https://squareup.com/login?app=developer&return_to=https://developer.squareup.com/), expand the **Webhook**section from the left sidebar, open the **Subscriptions**tab, and click the **Add Subscription** button.

![](https://paymattic.com/wp-content/uploads/2023/04/Webhooks-Subscriptions-Add-Subscriptions-scaled.webp)

Now, **Name** your webhook, paste the **URL** copied from **Paymattic’s Square Settings**page, and confirm your desired **API version.**

Then, select the **Events** recommended from Paymattic for Square by clicking the checkbox.

**The Events recommended by Paymattic are briefly explained below:**

- **invoice.created**: This triggers when an invoice is created for a customer, typically after an order is placed or at the start of a subscription billing cycle.

- **invoice.payment_made**: This triggers when a customer successfully completes a payment for a previously issued invoice, either partially or fully.

- **payment.updated**: This triggers when the status or details of a payment change. It covers updates such as payment completions, declines, or refunds on the Square dashboard.

- **subscription.created**: This triggers when a customer subscribes to a plan.

- **subscription.updated**: This triggers when a subscription’s details are changed, such as its status (e.g., paused, resumed, or canceled), or other attributes like billing cycles or pricing.

Once you select all the suggested**Webhook Events**, Click the **Save**button.  
And, the Square Webhooks will be configured with your WordPress Site!

![](https://paymattic.com/wp-content/uploads/2023/04/Add-a-webhook-subscription-page.webp)

## Add Square in Forms #

Once you finish setting up your **Square** payment gateway, you can easily add this payment method to any of your existing [Payment Form](/docs/how-to-create-your-first-payment-form-in-a-minute-and-accept-payments-with-paymattic/).

If you do not have any existing forms, read[Create a Form from Scratch](/docs/how-to-create-a-form-from-scratch-with-paymattic/) or[Create a Form using Templates](/docs/simple-form-templates/) documentation.

To learn the detailed process of adding a payment method to an existing form, read this [Documentation](/docs/how-to-use-the-payment-method-fields-section/).

But, remember, the added **Square**payment method in your **Form** will not function unless you complete the configuration process properly.

If you have any further questions, concerns, or suggestions, please do not hesitate to contact our [@support team](https://wpmanageninja.com/support-tickets/?utm_source=wpmn&utm_medium=home&utm_campaign=site#/). Thank you.

##### What are your Feelings

#### Share This Article :

- [![Facebook](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/facebook.svg?v=4.8.1)](https://www.facebook.com/sharer/sharer.php?u=https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/)
- [![X](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/twitter.svg?v=4.8.1)](https://twitter.com/intent/tweet?url=https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/)
- [![LinkedIn](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/linkedin.svg?v=4.8.1)](https://www.linkedin.com/shareArticle?mini=true&url=https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/)
- [![Pinterest](https://paymattic.com/wp-content/plugins/betterdocs/assets/static/images/social/pinterest.svg?v=4.8.1)](https://pinterest.com/pin/create/button/?url=https://paymattic.com/docs/how-to-integrate-square-with-paymattic-in-wordpress/)

Still stuck? How can we help? 

## How can we help?

Updated on October 4, 2024

[How to Integrate Xendit Payment Gateway in WordPress with Paymattic?](/docs/how-to-integrate-xendit-in-wordpress/)[How to Configure Billplz in WordPress with Paymattic?](/docs/how-to-configure-billplz-in-wordpress-with-paymattic/)

Powered by [BetterDocs](https://betterdocs.co)
