Re: Square Payment Module for Zen Cart [Support Thread]

Originally Posted by
carlwhat
i do not believe this is true. your square order may not be in the right status to do a capture on the ZC admin (or something else). if you search for _doCapt, you can see the modules that have this function, in theory, integrated with the ZC process of capturing a transaction in it.
includes/modules/payment/square_support/square_admin_notification.php
includes/modules/payment/paypaldp.php
includes/modules/payment/paypalwpp.php
includes/modules/payment/square.php
includes/modules/payment/authorizenet_aim.php
includes/modules/payment/authorizenet/authorizenet_admin_notification.php
includes/modules/payment/paypal/paypalwpp_admin_notification.php
admin/orders.php
i have never integrated with square or with a _doCapt, so i have no more info to provide on the topic.
best.
Hi carlwhat,
Thanks for the information.
I checked again today (https://jp.issquareup.com still shows Square as having serious issues) and could at least see my transactions in the dashboard this time. And I could do a refund on my test transaction there.
Then, when I logged into my ZenCart testshop admin again and looked at the order, lo and behold, the expected grey area for handling Square transactions was there!! So I assume that the reason it was not there before was because of transmissions failure to Square.
Now it would be really useful to have an indication of this kind of issue in the Zen Cart order screen (there was no missing space underneath the payment method information with last line "Credit Card Expires: xx/xx" and the start of the Products listing).
It looks like if there is some communication error that section of the order page is simply not rendered.
Note that when testing the API versions when I updated to 2020-05-28 I got a transaction error mail with the contents "Square will be right back" but with 2019-06-12 the transaction had gone through (the test transaction under discussion), so maybe the error for the API version was related to the general Square issue and not specifically to the API. I will try again...
Back to the transaction. I tried to do a refund from Zen Cart just to check, and got the expected error(s) in reply (in red at the top of the page) since I had already refunded from the Square dashboard:
1. Unable to process payment due to a communications error. You may try again or contact us for assistance.
2. Sorry, the attempted transaction update failed unexpectedly. See logs for details. [REFUND_AMOUNT_INVALID: The requested refund amount exceeds the amount available to refund. One or more refunds might already have been applied to this payment.]
So that seems to be working fine, and I can delete the test order.
Will report back with more API tests.
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0