October 24, 2020


Thinking Magento

Magento - Unable to communicate with the PayPal gateway

Your customer is trying to checkout with Paypal and the error they received is Unable to communicate with the PayPal gateway.

One of two things may have happened.

- Your webhosting company has applied a patch for the ShellShock Bug and forgotten to restart Apache / NginX
- Your certificate is no longer signed by one of the trusted root certificate authorities

To fix the root certificate problem you will need to have ROOT access to your server to execute the following

First, backup the old bundle:

cp /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt.bak
Then download the new bundle:

wget -O /etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem

Restart Apache / NginX / PHP

If this saved you hours of work or saved you from a headache, feel free to buy us a beer.