The Square Card payment plugin allows subscribers to enter their card details directly on the Membership Pro subscription form and pay through Square.
This plugin supports one-time payments. It does not support automatic recurring payments and will not be available for recurring subscription plans.
os_squarecard) to edit its settings. If you have changed the payment method title, it will appear under that title instead.The plugin needs three values: Application ID, Access Token, and Location ID. Square provides separate values for testing in Sandbox and processing real payments in Production.
Square illustrates these steps in Get application credentials. Only the credential retrieval steps are needed; the payment plugin already provides the integration, so you do not need to follow the coding instructions or install Square's sample application.
Keep the Access Token private. Enter it only in the payment plugin settings; do not include it in public screenshots, forum posts, or support messages.
Go to Membership Pro -> Payment Plugins and open the Square Card payment plugin. Configure the following parameters:
| Parameter | Description |
|---|---|
| Environment | Select Sandbox for testing or Live to accept real payments. Square calls the live environment Production. Default Live, so change it to Sandbox before you test. |
| Application ID | Enter the Application ID for the selected environment from Square's Credentials page. |
| Access Token | Enter the Access Token for the selected environment from Square's Credentials page. For your own Square account, use the production personal access token when going live. |
| Location ID | Enter the Location ID for the selected environment from Square's Locations page. This identifies the location that receives the payment. |
| Icon | Optional. Select an image to display instead of the payment method title on the subscription form. |
| Payment Processing Fee ($) | Optional. Enter a fixed processing fee to add to the subscription payment. Leave it empty if you do not want to add a fixed fee. |
| Payment Processing Fee (%) | Optional. Enter a percentage processing fee to add to the subscription payment. Leave it empty if you do not want to add a percentage fee. |
The plugin displays a separate set of credential fields for each environment, with the same labels. Select Sandbox and enter all three Sandbox values first. When you later select Live, enter all three Production values in the fields displayed for that environment.
All three values must belong to the same environment and the appropriate Square application/account. Do not combine a Sandbox Application ID with a Production Access Token or Location ID.
Set the payment plugin to Published, then click Save.
Unlike Square Hosted Checkout, Square Card does not require a webhook URL or Signature Key. It processes the card payment when the subscriber submits the form and updates the subscription after a successful payment response.
Set Environment to Sandbox, complete all three Sandbox credential fields, and save the plugin.
Open the subscription form for a paid, non-recurring plan on your website.
Select the Square Card payment method and complete the subscriber details.
Enter Square's test card details:
| Field | Test value |
|---|---|
| Card number | 4111 1111 1111 1111 |
| CVV | 111 |
| Expiration date | A future month and year. Avoid 01/40, which Square reserves for an error test. |
| Postal code | A valid postal code for the test country, if requested. For a US test account, you can use 94103. |
Submit the form. Confirm that Membership Pro displays the payment completion page and activates the subscription.
In Square, open the Sandbox Test Account dashboard for the location you used and confirm that the payment appears in its transactions.
Use test cards only in Sandbox. See Square's Sandbox payment testing guide for additional test cards, declined payments, and buyer verification scenarios.
After testing successfully:
Live payments charge the card. Square's Sandbox test cards cannot be used in Live mode.
When you refund a subscription in Membership Pro, the plugin sends a refund for the subscription's gross amount to Square. Check the refund in your Square dashboard as well.
| Problem | What to check |
|---|---|
| Square Card is not listed on the subscription form | Make sure the plugin is published and the plan allows this payment method. Use a paid, non-recurring plan. |
| The card fields do not appear | Check HTTPS, the Application ID and Location ID, and the selected environment. Ask your site administrator to check the browser console for blocked Square resources or JavaScript errors, including CSP restrictions. |
| Authentication or location errors | Check that all three credentials are filled in for the selected environment. Confirm that the Access Token is current and that the Location ID belongs to the Square account used by that token. |
| A currency error occurs | Check that the subscription payment currency matches the Square location's currency. |
| A Sandbox payment is declined | Use Square's test card details, a valid future expiration date, and an appropriate postal code. Real cards cannot be used in Sandbox. |
| Sandbox works, but Live payments fail | Check that your Square account is activated for card processing and that all three Live fields contain Production values, including the actual business Location ID. |