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


Reply With Quote
