Ah yes that will work![]()
If you are using Square as a storeowner and you have a developer working with you, they can have their own account so you don't have to coordinate for two factor authentication checks. It's called creating an Authorized Representative. See https://docs.zen-cart.com/user/payme...representative
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.
ZC Version 2.2.2 with PHP 8.5, OPC and WebPay 3.1.2
The ID and Secret are verified and from production vs test. Callback URL established correctly as well.
I cannot verify that the customer is using the correct SDK until tomorrow (I forgot to look when I was in there)
The upgrade was done by first removing the includes/modules/payment/square_webPay folder per instructions.
Purchase attempts are getting " Unable to process payment due to a communications error. You may try again or contact us for assistance."
Log file is:
Code:[04-Jun-2026 00:00:52 UTC] Request URI: /index.php?main_page=checkout_process, IP address: 246.197.16.99, Language id 1 #0 [internal function]: zen_debug_error_handler() #1 /includes/modules/payment/square_webPay.php(535): trigger_error() #2 /includes/modules/payment/square_webPay.php(514): square_webPay->logSquareApiException() #3 /includes/modules/payment/square_webPay.php(469): square_webPay->paymentRequest() #4 /includes/classes/payment.php(382): square_webPay->before_process() #5 /includes/modules/checkout_process.php(110): payment->before_process() #6 /includes/modules/pages/checkout_process/header_php.php(13): require('/home/spicdavi/...') #7 /index.php(40): require('/home/******/...') --> PHP Notice: Code: 400-> API request failed Status code: 400 Body: {"errors": [{"code": "INVALID_CARD_DATA","detail": "Card nonce not found in this application environment. Please ensure an application ID belonging to the same environment is used when generating the nonce.","category": "INVALID_REQUEST_ERROR"}]} {} in /includes/modules/payment/square_webPay.php on line 535.
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.
there is a mis-configuration going on. specifically between the production and sandbox environments.
i would suggest deleting all of your access tokens, their refresh tokens, and their TTL values. and then ensure that you the correct ID and Secret for the selected environment.
those keys are all something like:
MODULE_PAYMENT_SQ_WEBPAY_ACCESS_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_TOKEN_EXPIRES_AT
MODULE_PAYMENT_SQ_WEBPAY_REFRESH_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_TOKEN_EXPIRES_AT
MODULE_PAYMENT_SQ_WEBPAY_SANDBOX_REFRESH_TOKEN
you can review this post.
as well as this post.
the first post takes a hammer and reconstructs. the 2nd post takes a dull scalpel and then sews up.... in both cases you will need to get a new oauth token.
hopefully that will help resolve this issue.
best.
That was interesting, to say the least. I did, in fact, find the old data in the database.
However, this situation was a bit different, as the business was sold and the current owner was adding their code to the mod. That was in addition to the upgrade from 2.2.0 to 2.2.2 in the midst of everything else.
The SDK was one step newer as well, so I set it correctly.
The only problem now (minor at best) is that orders processed under the previous owner throw an error when viewing details or using Edit Orders due to the company changing hands.
Thanks for pointing me in the right direction. The docs showed no search results for Card nonce not found in this application or any variance of that search string.
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.