Forums / Basic Configuration / Unable to process payment due to a communications error

Unable to process payment due to a communications error

Views: 11,854

Results 1 to 14 of 14
3 May 2018, 5:10 PM
#1
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Unable to process payment due to a communications error

I was getting an error when someone tries to make a credit card payment. At the point where they confirm the payment they get:
"Unable to process payment due to a communications error. You may try again or contact us for assistance"
So following suggestions on another post:
I contacted the server company and told them:
Point your hosting company to http://corsoitalianspecialties.com/extras/curltester.php and ask them to fix the server's certificate chains and OpenSSL implementation.
They said that I have to update PHP. (which I did to 7)
That did not work- called them back and they said that I have to purchase SSL for the domain.
I did that but no change. I called back and I guess they redirected all requests to the domain to https://
I don't necessarily have an issue with that, but that did not change anything.
Getting error:"This is a non-secure form.
This form will be sent in a way that is not secure. Are you sure you want to send it?" Then the user and password disappears and asks me to sign in again.
So...
I changed the server address in configure (added s for HTTPS_SERVER)
define('HTTP_SERVER', 'http://corsoitalianspecialties.com');
define('HTTPS_SERVER', 'https://corsoitalianspecialties.com');
define('ENABLE_SSL', 'true');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

And the Admin config:

  • Enter the domain for your Admin URL. If you have SSL, enter the correct https address in the HTTP_SERVER setting, instead of just an http address.
    /
    define('HTTP_SERVER', 'https://corsoitalianspecialties.com');
    /
    *
  • Enter the domain for your storefront URL.
  • Enter a separate SSL URL in HTTPS_CATALOG_SERVER if your store supports SSL.
    */
    define('HTTP_CATALOG_SERVER', 'https://corsoitalianspecialties.com');
    define('HTTPS_CATALOG_SERVER', 'https://sperdie.fatcow.com/corsoitalianspecialties');
    But still no change - Keep getting error.
    Contacted the host company and they said that the problem is with my "Extras" folder but will not elaborate. Any idea what file in the "Extras" folder could cause this?

Got a Zencart Tatoo & Vanity Plate

3 May 2018, 5:23 PM
#2
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

Ignore the part: "Getting error:"This is a non-secure form.
This form will be sent in a way that is not secure. Are you sure you want to send it?" Then the user and password disappears and asks me to sign in again.
So..." as that was due to the misdirects, that did not allow me to sign into the Admin. I can sign into the admin now after changing the configure file.
So my only issue is with credit card processing.

Got a Zencart Tatoo & Vanity Plate

3 May 2018, 6:04 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Unable to process payment due to a communications error

Assuming that yourself tested the link given to the host and found that there were errors still, then your host still has not resolved the issue. The SSL related issues identified by that test are not related to customers accessing your site, but your site talking to other computers/sites. Further if the host can't seem to understand that difference, then perhaps it is time to find one that does...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 May 2018, 6:14 PM
#4
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

I was not sure of what the expectations are when I go to
http://corsoitalianspecialties.com/extras/curltester.php
So going to that url from my computer, I get message:
Forbidden
You don't have permission to access /extras/curltester.php on this server.
That directory "/extras" is where they told me the issue was but could not tell me any more.

Got a Zencart Tatoo & Vanity Plate

3 May 2018, 8:37 PM
#5
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

OK so I removed .htaccess in the "extras" folder.
That allowed me to run the curl test https://corsoitalianspecialties.com/extras/curltester.php
I see error here: "Error 60: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
IMPORTANT NOTE: Error 60 or 61 means that this server has an SSL certificate configuration problem. YOU NEED TO ASK YOUR HOSTING COMPANY SERVER ADMIN FOR ASSISTANCE with fixing the server's OpenSSL certificate chain. "

Got a Zencart Tatoo & Vanity Plate

4 May 2018, 4:47 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,720
Plugin Contributions:
56

Re: Unable to process payment due to a communications error

Are you using Authorize.Net? You might need the new PEM file. It's here: https://raw.githubusercontent.com/AuthorizeNet/sdk-php/master/lib/ssl/cert.pem

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.

6 May 2018, 10:31 PM
#7
sperdie avatar

sperdie

Zen Follower

Join Date:
Feb 2005
Location:
Jim Thorpe Pennsylvania
Posts:
131
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

swguy:

Are you using Authorize.Net? You might need the new PEM file. It's here: https://raw.githubusercontent.com/AuthorizeNet/sdk-php/master/lib/ssl/cert.pem
Using Square.
I was waiting for a ticket that i submitted to my Hosting service. I noticed that pay by check was the "default" payment method.
I changed the default to Square. https://corsoitalianspecialties.com/extras/curltester.php still gets errors but now it seems to be accepting credit cards.
So issue seems to be resolved.

Got a Zencart Tatoo & Vanity Plate

7 May 2018, 2:40 AM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Unable to process payment due to a communications error

This form will be sent in a way that is not secure. Are you sure you want to send it?" Then the user and password disappears and asks me to sign in again.
So...
I changed the server address in configure (added s for HTTPS_SERVER)
define('HTTP_SERVER', 'https://corsoitalianspecialties.com');
define('HTTPS_SERVER', 'https://corsoitalianspecialties.com');
define('ENABLE_SSL', 'true');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');You'll need to also add the s above to make https work in the catalog.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Sep 2020, 4:06 PM
#9
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Unable to process payment due to a communications error

dbltoe:

You'll need to also add the s above to make https work in the catalog.

I was having the same issue, then I found that my square account needed to confirm I was able to take payments. It's part of the set up process.

There is a Green Button, Top Right of the Square Dashboard saying set up guide. You will see an option in there saying 'Take your first payment'. You must click on this and take your first payment by clicking on that, not through any other method. Send yourself an invoice for £1 or $1 or whatever currency you are using and pay for it on a credit or debit card. That will confirm your account set up and will allow you to take payments through your website.

You need to leave it a few minutes to finish processing the account set up though, so don't try immediately after account set up. Image attched.Attachment 19207

Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk

9 May 2026, 11:23 PM
#10
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

I now have the same problem, and using Square Up. Your image does not open for me. Logged into square, I do not find the dashboard link with the Green Button to click either. Under my Store, there is nothing like that either.

10 May 2026, 12:16 AM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: Unable to process payment due to a communications error

I'm thinking that maybe things might have changed in 6 years. :P

Let us know your ZC version, PHP version, and Square WebPay version.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

10 May 2026, 2:39 PM
#12
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

Re: Unable to process payment due to a communications error

dbltoe:

I'm thinking that maybe things might have changed in 6 years. :P

Let us know your ZC version, PHP version, and Square WebPay version.

Thank you for your reply. Here is some info you requested....

ZC version: 2.1.0, PHP 8.1, Square Web Pay Version 3.1.1

(From Store Website Log)<<
[09-May-2026 20:03:12 America/New_York] PHP Notice: Code: 401-> API request failed
Status code: 401
Body: {
"errors": [
{
"category": "AUTHENTICATION_ERROR",
"code": "UNAUTHORIZED",
"detail": "This request could not be authorized."
}
]
}

{} in /home/mystore/public_html/mystoredir/includes/modules/payment/square_webPay.php on line 535

This Is What Line 535 Says:<<<<
532 private function logSquareApiException(object $e, $body = ''): void
533 {
534 $message = 'Code: ' . $e->getCode() . '-> ' . $e->getMessage();
535 trigger_error($message . PHP_EOL . PHP_EOL . json_encode($e));
536 $this->logTransactionData([], $body, true, true, $message . print_r($e->getMessage(), true));
537 }

10 May 2026, 3:27 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,111
Plugin Contributions:
56

Re: Unable to process payment due to a communications error

You might try posting this in the square_Webpay support thread, but it kind of looks like the site's not receiving its access token.

10 May 2026, 3:34 PM
#14
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,970
Plugin Contributions:
8

Re: Unable to process payment due to a communications error

NDboots:

[09-May-2026 20:03:12 America/New_York] PHP Notice: Code: 401-> API request failed
Status code: 401
Body: {
"errors": [
{
"category": "AUTHENTICATION_ERROR",
"code": "UNAUTHORIZED",
"detail": "This request could not be authorized."
}
]
}

i would suggest reviewing the zen-cart square documentation.

the error message is pretty clear.

ensuring the your application is properly provisioned, and that you have a valid OAuth token can some times be a challenge.

but you are communicating with square, and square is telling you what is wrong.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.