The errorsetc. are because these variable have not been declared in /includes/modules/payment/square_webPay.phpCode:PHP Deprecated: Creation of dynamic property square_webPay::$token
If you add a lines
to /includes/modules/payment/square_webPay.php near where you see the other definitions.Code:public $order_status, $gateway_currency;
protected $token, $client, $oauthClient, $_logDir, $sdkApiVersion, $_check;
The error
is telling you what you need to do.Code:PHP Deprecated: Return type of Square\Models\Location::jsonSerialize(bool $asArrayWhenEmpty = false) should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php on line 807.
in /includes/modules/payment/square_webPay/square/square/src/Models/Location.php
Add
before each function decleration in that module.Code:#[\ReturnTypeWillChange]
I think the last error is created because the earlier module failed. If not you would have to change the php in /includes/modules/pages/checkout_payment/jscript_square_webPay.php
You may have to do this for all the addslashes commands in this file.Code:addressLines: ['<?= addslashes($order->billing['street_address'] ?? ''); ?>', '<?= addslashes($order->billing['suburb'] ?? ''); ?>'],
As an alternative you could buy the later version from https://mxworks.cc/?product=zen-cart...in-for-php-8-x