@carlwhat
Hallo,
I was wondering. Is there a way to rebill a past customer with this app ? They asked if we could change them and send another order of a item we carry.
Printable View
@carlwhat
Hallo,
I was wondering. Is there a way to rebill a past customer with this app ? They asked if we could change them and send another order of a item we carry.
within ZC and square webPay, there is no ability to re-bill a customer using a credit card that they previously entered.
i would think that ability could be built into the app; but it currently is not done.
there might be a way to charge the customer from the square dashboard. one would need to track down the original transaction and see what options might be available to do that.
i do not have any clients that use this payment module, so i have no real access to a live dashboard. my developer dashboard does not allow for add-on transactions.
you can do a little bit of reading on the square website.
Even though it's a matter of having to get their card info over the phone, you can use the Place Order function discussed at https://docs.zen-cart.com/user/runni...n_as_customer/.
Log in as them, and enter their card data as they give it to you. You will get the same rate as if the customer entered their data instead of being charged for entering the card data in Square or by invoice.
Zen Cart 1.5.8
PHP 7.4
MySQL 8.0.34
OPC 2.4.5
Square WebPay 1.0.4
This store recently sold. It was working fine, switched the Square account to the new owner and it works fine. However, previous orders in the orders screen cannot be viewed with the following error.
[05-Oct-2023 17:23:22 America/New_York] Request URI: /xx/index.php?cmd=orders&page=1&oID=10030690&action=edit, IP address: 000.000.000.000
--> PHP Fatal error: Uncaught Error: Call to a member function getOrders() on array in /home/xxx/public_html/includes/modules/payment/square_webPay.php:913
Stack trace:
#0 /home/xxx/public_html/includes/modules/payment/square_webPay.php(526): square_webPay->lookupOrderDetails(10030690)
#1 /home/xxx/public_html/xx/orders.php(741): square_webPay->admin_notification(10030690)
#2 /home/xxx/public_html/xx/index.php(11): require('/home/xxx/...')
#3 {main}
thrown in /home/xxx/public_html/includes/modules/payment/square_webPay.php on line 913.
Were the previous orders done with 1.0.4 as well? It was necessary to keep the old square files for some older orders to be seen on some sites but they were made with the old Square, not WebPay.
m,
we have an order, 10030690, and we are trying to get the details of that order.
was that order processed using square_webPay or the old square version? do you know? what is the date of the order?
when you say, reinstalled and configured, is the configuration new from the time the order was originally placed?
is this problem just occurring for this order or for all orders?
just before line 113 which has the getOrders call you can add:
and then post the results of the corresponding log file. and we can take a look at what is happening.PHP Code:
if (is_array($response['results'])) {
trigger_error(json_encode($response['results']));
return new Models\Order;
}
best.
it does seem like the response object is an array, and the first element is called error, and i have a feeling that might be true.
i have a distinct feeling you are using the wrong, sdk. in the square dashboard, you should be using SDK version: 17.2.0.20220216.
when i used that sdk, and the response['results'] was an array, no error occurred.
hope that helps.