Re: Square WebPay support thread.
Hello all,
I'm using ZC1.5.6c with PHP7.3, MariaDB 10.3.24, and Square WebPay 1.0.4. In Square, I am using the API version from 2022-02-16 (unchanged from when I installed the module I think), but I also switched to the latest version that does not require domain verification, with no change in behaviour.
My own browser is Firefox 125.0.1.
The last successful payment was on 23rd March 2024, since then the "Continue" button to continue to step 3 (confirmation) of the checkout page does nothing, and there is no log file generated. I see the GET in my access log with a 200 HTTP response, but there seems to be no communication to or from Square.
Looking at the Network tab in Firefox developer tools shows oddly that the beacon connection to pci-connect.squareup.com is failing with NS_ERROR. Reloading the page shows dozens of these errors, but no issues with access to other Square-related subdomains, or even to pci-connect.squareup.com when the connection is not a beacon but instead, say, a fetch.

When I do presse the "Continue" button I see the sucessful GET and then a failed beacon, after that nothing.

When I do a nameserver lookup for pci-connect.squareup.com, there is a valid response, I can even connect to that domain via HTTPS, although it redirects to my local (Japan) Square site immediately.
Searching online I see this problem might be related to access control and/or CORS (cross-origin resource sharing) settings in my browser, but I have no idea at the moment how to solve this. Also I have seen articles on beacon issues with other browsers, such as Safari and Chrome.
Is this something I need to investigate further on the browser side - and potentially educate customers, since there have been complains that "nothing happens" when trying to go to Step 3 of checkout - or is this something I can fix on the server side?
It might be that the above is a red herring, and that the issue is entirely somewhere else, but I have no logs to go on, and no changes have been made to the webshop.
Any advice/insights appreciated.
Last edited by gernot; 21 Apr 2024 at 01:16 PM.
Reason: images seem highly compressed and unreadable
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.0.1.
Bookmarks