r/Wordpress • • Sep 30 '26

Square Plugin Keeps Disconnecting

Hello! Anyone who uses Woocommerce, have you experienced the Square plugin for payment methods randomly disconnecting?

It’s becoming a problem for our small business. We have a web company that is supposed to maintain the site but our customers end up being the ones to alert us and catch when our website checkout page doesn’t have any payment methods. I then have to go in manually to reconnect Square. There seems to be zero timing consistency, the web company told us that it might be a 90 day issue when plugins update or it could be a reset on the 2nd of each month?

If anyone has found a fix for this, I’d love to let them know so that we can have a functioning website 24/7. It’s hard to tell if they are just pulling us along and giving excuses or if this is really a bug within Wordpress that others are experiencing too. Thank you!

4 Upvotes

11 comments sorted by

5

u/Correct_Capital_1294 Sep 30 '26

If you're paying a company to manage your website, tell them to manage your website.

0

u/Spookygirlera Sep 30 '26

Yeah it’s been very frustrating having to tell them when it occurs just to have them excuse it as something that just “happens.”

2

u/SuperPerformance3322 Sep 30 '26

I’d treat this as a checkout monitoring issue rather than assuming it’s just a normal WordPress behavior. A payment gateway randomly disappearing is something I’d want investigated, especially if customers are discovering it before the site owner does.

I’d check the WooCommerce/Square logs around the exact time it disconnects, along with plugin updates, WordPress/PHP versions, scheduled tasks, authentication/API errors, and any hosting/security changes. Also test whether the connection is actually being lost or whether Square is connected but the payment methods are failing to load.

If the site is generating real orders, I’d definitely set up an automated checkout/payment-method health check so you get alerted when payments stop working instead of waiting for a customer to report it.

1

u/mudpawdesign Sep 30 '26

This happens to us on one store but not another. Same square account used. It is a less active store than our main one. Noses connection frequently.

1

u/WP_Dev_Studio Sep 30 '26

Real, documented issue — not an excuse. Square's OAuth access tokens expire every **30 days**; if you're on their newer PKCE flow, the refresh token itself is single-use and expires after **90 days**. The plugin's supposed to auto-refresh quietly before that happens, but when the background refresh fails silently (unreliable WP-Cron, a caching plugin interfering, a plugin conflict), you get exactly your symptom: works fine, then just stops, no warning.

 

Other users have reported this on the same **30-40 day cycle**, usually traced to WP-Cron not firing reliably — on low-traffic sites it only runs on page visits, so if traffic's light, scheduled tasks (like token refresh) can silently miss their window.

 

What your web company should actually be doing:

  1. Switch to a **real system cron** hitting `wp-cron.php` instead of relying on WP-Cron's visit-triggered firing
  2. Set up **monitoring** so a failed refresh alerts them, not you via a broken checkout
  3. Check `WooCommerce → Status → Logs` for `invalid_grant` errors to confirm the root cause

 

It's a legitimate integration quirk, but "the customer catches it and we manually reconnect" isn't an acceptable long-term fix from a company maintaining your site — this is fixable, and worth pushing them on.

4

u/[deleted] Sep 30 '26

[removed] — view removed comment

1

u/Spookygirlera Sep 30 '26

I really appreciate your tips! Thank you