I'm thinking that maybe things might have changed in 6 years.
Let us know your ZC version, PHP version, and Square WebPay version.
I'm thinking that maybe things might have changed in 6 years.
Let us know your ZC version, PHP version, and Square WebPay version.
A little help with colors.
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.
Thank you for your reply. Here is some info you requested....
ZC version: 2.1.0, PHP 8.1, Square Web Pay Version 3.1.1
>>(From Store Website Log)<<
[09-May-2026 20:03:12 America/New_York] PHP Notice: Code: 401-> API request failed
Status code: 401
Body: {
"errors": [
{
"category": "AUTHENTICATION_ERROR",
"code": "UNAUTHORIZED",
"detail": "This request could not be authorized."
}
]
}
{} in /home/mystore/public_html/mystoredir/includes/modules/payment/square_webPay.php on line 535
>>>>This Is What Line 535 Says:<<<<
532 private function logSquareApiException(object $e, $body = ''): void
533 {
534 $message = 'Code: ' . $e->getCode() . '-> ' . $e->getMessage();
535 trigger_error($message . PHP_EOL . PHP_EOL . json_encode($e));
536 $this->logTransactionData([], $body, true, true, $message . print_r($e->getMessage(), true));
537 }
You might try posting this in the square_Webpay support thread, but it kind of looks like the site's not receiving its access token.
i would suggest reviewing the zen-cart square documentation.
the error message is pretty clear.
ensuring the your application is properly provisioned, and that you have a valid OAuth token can some times be a challenge.
but you are communicating with square, and square is telling you what is wrong.
best.