Have you looked into PayPal Express Checkout policies... It is an activated option in your payment modules.. maybe that negates another choice during checkout?
Printable View
I think the big booger in the room boils down to this... why am I getting an error code for a missing file in a location that that file is not supposed to be in the first place? It deosn't make sense :no:
Are there version changes with ZC v2.0.1 that arre so drastically different it requires a different "structure" to file placements for the module?... This is a real conundrum... has anyone else experienced this trying to use this module in ZC 2.0.1?....
Aside from the error about the missing languages auotoload.php file that's not supposed to be in there to begin with.... my Admin logs display this error:
PHP Fatal error: Uncaught Error: Class "Unirest\Request" not found in /includes/modules/payment/square_webPay/square/square/src/Apis/BaseApi.php:64
Stack trace:
#0 /includes/modules/payment/square_webPay/square/square/src/Apis/OAuthApi.php(22): Square\Apis\BaseApi->__construct()
#1 /includes/modules/payment/square_webPay/square/square/src/SquareClient.php(327): Square\Apis\OAuthApi->__construct()
#2 /includes/modules/payment/square_webPay.php(733): Square\SquareClient->getOAuthApi()
#3 /squareWebPay_handler.php(33): square_webPay->exchangeForToken()
#4 {main}
thrown in /includes/modules/payment/square_webPay/square/square/src/Apis/BaseApi.php on line 64
I see it repeatedly... I have no idea what to be looking for on line 64 of this file... any ideas?
*Each* file in includes/modules/payment (but not subdirectories of that directory) is assumed to be a payment module. If the file autoload.php is in that directory, Zen Cart will try to load it as a payment module and in doing so, will also look for a language file with the same name as the "payment module" file, i.e. autoload.php. The "missing" file (which is not actually missing) is a consequence of having that spurious file in the includes/modules/payment directory. Move it to where it should be and Zen Cart will no longer go looking for a matching language file and things should become a lot less confusing.
I currently use PayPal since PayPal no longer allows Quest check out with a credit card and replacing PayPal with Square Web Pay. I tried turning off PayPal and Square still does not display as a payment option.
This was an adventure... so.. I move the autoload.php file over to includes/languages/english/modules/payment/autoload.php and I lost every payment module except for the two Authorize.net modules... being as this has happened... I figured I would try "copying" the file back over to whence it came (I figure why not, right?...)... all the payment modules re-appear EXCEPT for the Sqaure webPay :lol:
So I then decided to just place the autoload.php file back where it was at includes/languages/english/modules/payment/autoload.php and... the Square WebPay module re-appears again with all the other payment modules... go figure... :rotflmao:
Sorry, I had missed earlier that you said that's where you were planning to move it to. That's the wrong place.
It needs to go in includes/modules/payment/square_webPay/autoload.php.
That's where it is in the module directory structure as it comes in the zip file. i.e. one level down from where you have it at the moment. Unzip the file you downloaded and browse the directories in it to see what I mean.
The mention of the "missing" language file (that doesn't exist and shouldn't exist) is simply a consequence of Zen Cart trying to make sense of the misplaced file.