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.
one other detail when the url to the square handler is output, it no longer contains https according to this server. Can I assume this was the first problem? I checked square to make sure I had entered it with https and I did for sure.
I deleted and uploaded the mod again - looks like there was a problem with the upload before but now more sure of all files.
New error:
[11-Jul-2022 12:27:31 America/Chicago] PHP Fatal error: Uncaught Error: Class 'Square\Apis\OAuthApi' not found in /includes/modules/payment/square_webPay/square/square/src/SquareClient.php:327
Stack trace:
#0 /includes/modules/payment/square_webPay.php(699): Square\SquareClient->getOAuthApi()
#1 /squareWebPay_handler.php(33): square_webPay->exchangeForToken('sq0cgp-yqknT5yc...')
#2 {main}
thrown in /includes/modules/payment/square_webPay/square/square/src/SquareClient.php on line 327
[11-Jul-2022 12:27:31 America/Chicago] Request URI: /squareWebPay_handler.php?code=sq0cgp-yqknT5ycT7STIC6TiIdI7g&response_type=code&state=365182f3272e192f5b9fee7f9f0c3343 0, IP address: 76.179.90.49
--> PHP Fatal error: Uncaught Error: Class 'Square\Apis\OAuthApi' not found in /includes/modules/payment/square_webPay/square/square/src/SquareClient.php:327
Stack trace:
#0 /includes/modules/payment/square_webPay.php(699): Square\SquareClient->getOAuthApi()
#1 /squareWebPay_handler.php(33): square_webPay->exchangeForToken('sq0cgp-yqknT5yc...')
#2 {main}
thrown in /includes/modules/payment/square_webPay/square/square/src/SquareClient.php on line 327.
can you please email the full log that you are getting?
i'm not really into giving generic error messages when we should have the exact detail of what went wrong.
that said, it is entirely possible that i am not providing that detailed message and that getCode and getDetail is not what i expect it to be.
i certainly am willing to add some notifiers so that you can override the message that goes to the messageStack is that works for you.
delia,
i would re-download it either from the plugins here. or from the source which is here:
https://github.com/proseLA/square_we...ses/tag/v1.0.1
i would review the data here:
https://docs.zen-cart.com/user/payme...-payments-form
at some point i plan on redoing this handshake with the OAuth token. which is what the handler does. i personally find it problematic as well... i tried modeling it after the original square module, and now i am not really liking it. i had to get a new OAuth token myself the other day, and it took me forever! i think mostly because of the production v sandbox environment.
unfortunately i can not provide much help. but the idea that you have missing classes suggests to me you have not uploaded all of the code. on my install it finds it finds those classes no problem.
perhaps someone else can chime on getting the OAuth token.
best.
ok, i have simulated a few errors. the details provided on this page:
https://developer.squareup.com/refer...nums/ErrorCode
are not available in the response.
in addition, it seems that the getDetail provides all of the information in the getCode method. so having both of those in the message could look confusing.
i will look into providing a config option so that a generic message could be chosen rather the specific message as opposed to doing a notifier. and then you can have a choice. hope that works for you.
when an error comes up here is what one can present back to the customer:
https://www.dropbox.com/s/vrh971v5ui...thods.png?dl=0
best.
whatever went wrong - I now have it working fine. That was the craziest crap I've ever run into. working between 2 different ftp programs and 2 different OS and weirdness and more weirdness. I'm thinking some caching was the issue somewhere.....
When this happens:
Your transaction failed due to an error: (access token expired) The provided OAuth access token has expired. You must renew the access token via the Renew Access Toke via the Renew Access Token Endpoint.
Can you detect it and email the store owner?
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.
Bookmarks