see https://www.zen-cart.com/showthread....21#post1401721 earlier in this thread on how to fix php depreciated. it is because the version of square web pay is not coded for your version of php.
see https://www.zen-cart.com/showthread....21#post1401721 earlier in this thread on how to fix php depreciated. it is because the version of square web pay is not coded for your version of php.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
1. I was replying to questions,
2. You are not totally right about it being PHP version, it can also be API version (and the reason I said API version was because the error was of a API function name and not a PHP code (yes before you say I know a API function name is also PHP code so please don't think me of a silly person) so you can have the right version of PHP for the plugin and get a API depreciated error (as some users have been known to wish to use the newest API version and believe by just replacing the API version (files in the API folder) that means they will be using the newest API version but have not upgraded the plugin as they have not updated the API call within the plugin hence depreciated when working with API's tend to be more related to API version of when you look at the line of code the error is at and it is a API function name call.
So I hope you can see why I said API version instead of just jumping to it's a PHP version error.
Kind regards OJ
Last edited by OJ_SIMON; 11 Jul 2024 at 11:08 AM.
This message
--> PHP Deprecated: Creation of dynamic property square_webPay::$token is deprecated in /home/customer/www/devel.tennesseetraditionalflies.com/public_html/shop/includes/modules/payment/square_webPay.php on line 109.
is caused by using an old version of the Square WebPay plugin (version 1.0.4) from the plugins library and expecting it to work with newer versions of PHP.
It has nothing to do with your API version.
The plugin library version of the Square WebPay plugin does NOT work with newer versions of PHP. That's why when you go to
https://www.zen-cart.com/downloads.php?do=file&id=2345
it says at the top:
Please note: PHP8.1+ requires a paid upgrade; purchase through https://mxworks.cc/?product=zen-cart...in-for-php-8-x
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Mxworks = carlwhat, who is the guy who wrote this version. So ya, if you want to use a moden version, throw him the $100. He does send us periodic updates, and provides support when needed. Its really not a bad deal at all for what you get.
The plugin page on Zencart states as follows.
Please note: PHP8.1+ requires a paid upgrade; purchase through https://mxworks.cc/?product=zen-cart...in-for-php-8-x
They require $100 to download it.
There is a LOT that is freely available for use with Zen Cart. This is one of those exceptions and is very well worth the $100. mxworks makes one available free free. If you don't want to use that one, he's kind enough to offer a different version you can easily get.
@swguy makes a good point. If you were to buy this out right, it would be thousands.
I just noticed this.
You are not *stuck* with mxworks, you're *incredibly lucky* to have mxworks doing this difficult work for a nominal fee.
Both @lat9 and I have done custom payment module work for customers, and have charged multiple thousands of dollars.
Ain't life grand that someone is selling the Square integration to multiple people so that no one person has to pay full freight.
Thank you @carlwhat and other developers who are contributing to the Zen Cart plugin pool.
Instructions on buying the Square plugin in the help documentation here:
https://docs.zen-cart.com/user/payme...ercial_module/
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.