Several of our customers use their ZC as an online catalog of their products with 90+% of their business being face to face versus online.

They are traveling booths that do state fairs, rodeos, home shows, etc. Most online sales happen within days after the store owner has had their booth set up at one of those events. Someone liked an item and decided later to get it is the usual scenario behind the purchase.

Due to the pandemic, many of those have not had face to face with any customer for over a year.

One such customer got an e-mail today that there was a critical error with the module.

This is an alert from your Zen Cart store.

Your Square Payment Module access-token has expired, or cannot be refreshed automatically. Please login to your store Admin, go to the Payment Module settings, click on the Square module, and click the button to Re/Authorize your account.


Square Payments are disabled until a new valid token can be established.


The token expired on 2021-04-23T16:02:17Z
That was a long time ago. Over 90 days. But, it is not uncommon for this store to go over 90 days between orders.

If memory serves me correctly, the need for a cron job to maintain the connection to Square was eliminated with the latest version of this mod. (using 1.5)

Is that true still? Why did the error notice not arrive until a customer attempted to check out? Which system recorded the expiration? If ZC, why did the store owner not receive any notice? Debug is set to log and e-mail on failures. If the date came from Square, is there some way to have them let the store owner know when the token expires?

I realize the last is a question for the Square folks but, I need to gather more information before a fight past the script-reader who keeps telling me we need to use their website and gateway.

Is there some debug setting that will allow the token expiration to trigger the log and e-mail at the time it happens versus when someone tries to checkout later?