The fact here is that most of the time it is something they enabled, changed, added or otherwise screwed around with all their browser settings. Malware or a BHO in their browser....
There will always be people who report issues and like I said most times it's them, but you can't help most of them. Sometimes you just have to tell them to try a different device.
Also, Apple seriously does whatever it wants with regard to web standards.... Always have.
~Melanie
PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
**I answer questions in the forum, private messages are not conducive to a helpful community.
no, i did not. perhaps zero clients using square is more appropriate.
my few clients use my authorize net plugin; and some form of the dreaded paypal. i host them all on linux servers, and i use a linux workstation for my own development.
some clients use apple for their own workstations; but in general, i do not.
i only coded this module as someone asked me to do it. so i did it for the community. setting up very specific environments to simulate what a store's customer might have, is a bit of work. but i do want to ensure that the code works for most environments.
hope that answers your question.
I can confirm that Square works fine on my iMac. As @carlwhat noted, the OP's installation is out of date.
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.
1.5.8a
Tried with both PHP 7.4 and 8.0
version 1.04 of WebPay
OPC
EO (Can edit the orders with this)
bootstrap template
This just cropped up for one site and the solutions mentioned earlier made things worse.
Here's what we started getting a couple of weeks ago (today's version/date):
When adding the suggested code in post #527, the error changes to:Code:[17-Jan-2024 15:26:21 America/Denver] PHP Fatal error: Uncaught Error: Call to a member function getOrders() on array in /includes/modules/payment/square_webPay.php:913Stack trace: #0 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570) #1 /******/orders.php(740): square_webPay->admin_notification(1570) #2 /******/index.php(11): require('/home/******/...') #3 {main} thrown in /includes/modules/payment/square_webPay.php on line 913 [17-Jan-2024 15:26:21 America/Denver] Request URI: /******/index.php?cmd=orders&origin=index&page=1&oID=1570&action=edit, IP address: 12.34.56.78 --> PHP Fatal error: Uncaught Error: Call to a member function getOrders() on array in /includes/modules/payment/square_webPay.php:913 Stack trace: #0 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570) #1 /******/orders.php(740): square_webPay->admin_notification(1570) #2 /******/index.php(11): require('/home/******/...') #3 {main} thrown in /includes/modules/payment/square_webPay.php on line 913.
I do not know if EO has to run the API to get its info but, we are able to edit orders. However, EO does not provide capture or refund capabilities. We set everything to capture versus authorize and have been refunding (where needed) thru Square.Code:[18-Jan-2024 10:47:02 America/Denver] Request URI: /******/index.php?cmd=orders&page=1&oID=1570&action=edit, IP address: 12.34.56.78, Language id 1#1 square_webPay->lookupOrderDetails() called at [/includes/modules/payment/square_webPay.php:526] #2 square_webPay->admin_notification() called at [/******/orders.php:740] #3 require(/******/orders.php) called at [/******/index.php:11] --> PHP Warning: Undefined variable $apiResponse in /includes/modules/payment/square_webPay.php on line 911. [18-Jan-2024 10:47:02 America/Denver] PHP Fatal error: Uncaught TypeError: square_webPay::processResult(): Argument #1 ($apiResponse) must be of type object, null given, called in /includes/modules/payment/square_webPay.php on line 911 and defined in /includes/modules/payment/square_webPay.php:473 Stack trace: #0 /includes/modules/payment/square_webPay.php(911): square_webPay->processResult(NULL, Object(Square\Models\BatchRetrieveOrdersRequest)) #1 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570) #2 /******/orders.php(740): square_webPay->admin_notification(1570) #3 /******/index.php(11): require('/home/******/...') #4 {main} thrown in /includes/modules/payment/square_webPay.php on line 473 [18-Jan-2024 10:47:02 America/Denver] Request URI: /******/index.php?cmd=orders&page=1&oID=1570&action=edit, IP address: 12.34.56.78 --> PHP Fatal error: Uncaught TypeError: square_webPay::processResult(): Argument #1 ($apiResponse) must be of type object, null given, called in /includes/modules/payment/square_webPay.php on line 911 and defined in /includes/modules/payment/square_webPay.php:473 Stack trace: #0 /includes/modules/payment/square_webPay.php(911): square_webPay->processResult(NULL, Object(Square\Models\BatchRetrieveOrdersRequest)) #1 /includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(1570) #2 /******/orders.php(740): square_webPay->admin_notification(1570) #3 /******/index.php(11): require('/home/******/...') #4 {main} thrown in /includes/modules/payment/square_webPay.php on line 473.
THANX in advance for your assitance
Are You Vulnerable for an Accessibility Lawsuit?
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.
We are now receiving emails stating:
Code:Jan-18-2024 11:01:54 ================================= Error Dump: [UNAUTHORIZED]: This request could not be authorized. Sent to Square: SquareModelsBatchRetrieveOrdersRequest Object ( [locationId:SquareModelsBatchRetrieveOrdersRequest:private] => [orderIds:SquareModelsBatchRetrieveOrdersRequest:private] => Array ( [0] => nwMNvXeqAS9HsQJmL72KKDSDZtOZY ) )
Are You Vulnerable for an Accessibility Lawsuit?
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.
Hi
I never suggested there was an issue with the code - I am convinced its an environment issue - I'd just like to have a solution to give my clients.
I fully understand how to switch on/off javascript in safari, but the fact they claim it then also doesn't work in chrome on the same device is what's throwing me - that really was my question.
I've been using Square Webpay successfully with no problems for 6 months or so on 6 shops managed by myself.
Yesterday, a customer tried to pay on one of the shops and the payment failed with a message similar to
"Authorization failed to instantiate...."
This shop is running on
Zen Cart 1.5.8a
PHP Version: 8.1.27
I've tested this myself and the problem is with Zen Cart and Square Webpay. My other 5 shops are all running fine on the same version of Square, PHP and either Zen Cart 1.5.8 or 1.5.7.
I have created a new Application ID and OAUTH (application secret) on the afflicted shop and entered these details into my Zen Cart Square Webpay module but when I click on the link "click here to log in and authorize your account" I just get a completely blank screen.
I've checked and rechecked (repeatedly) and I can't find the error.
I've tried 3 different browsers with the same result. I've deleted cookies, browsing history etc.. and I'm still getting a blank screen.
Please help!
Which version of Square WebPay?
Noting that the version in Plugins is only guaranteed to work up to PHP 8.0 with ZC v1.5.6 & v1.5.7 (You might have got lucky with your ZC 1.5.7 & 1.5.8 sites, especially if you've applied some of the code changes which, from memory, have been mentioned in this thread.)
A blank screen should have generated a debug file in your logs folder.
Simon
----------------------------------------------------------------------------------------------------
I'm using Square Webpay 1.0.4 I think this is the latest version.
Debug log:
[31-Jan-2024 15:53:44 Europe/London] PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /mydomain/includes/classes/zcDate.php:92
Stack trace:
#0 /mydomain.co.uk/includes/classes/zcDate.php(92): IntlDateFormatter->getPattern()
#1 /mydomain.co.uk/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /mydomain.co.uk/includes/autoload_func.php(47): zcDate->__construct()
#3 /mydomain.co.uk/includes/application_top.php(237): require('/homepages/0/d2...')
#4 /mydomain.co.uk/squareWebPay_handler.php(23): require('/homepages/0/d2...')
#5 {main}
thrown in /mydomain.co.uk/includes/classes/zcDate.php on line 92
[31-Jan-2024 15:53:44 Europe/London] Request URI: /squareWebPay_handler.php?nocache=1&_=1706715189779, IP address: 2a00:23c7:c69e:3501:bd68:4ef8:dcdc:8ba9
--> PHP Fatal error: Uncaught Error: Found unconstructed IntlDateFormatter in /mydomain.co.uk/includes/classes/zcDate.php:92
Stack trace:
#0 /mydomain.co.uk/includes/classes/zcDate.php(92): IntlDateFormatter->getPattern()
#1 /mydomain.co.uk/includes/classes/zcDate.php(39): zcDate->initializeConversionArrays()
#2 /mydomain.co.uk/includes/autoload_func.php(47): zcDate->__construct()
#3 /mydomain.co.uk/includes/application_top.php(237): require('/homepages/0/d2...')
#4 /mydomain.co.uk/squareWebPay_handler.php(23): require('/homepages/0/d2...')
#5 {main}
thrown in /mydomain.co.uk/includes/classes/zcDate.php on line 92.
Bookmarks