Prestashop throwing Paypal error line 130

  • Answered
Paypal not processing payments in Prestashop. Showing following error - public_html/modules/paypal/api/paypal_connect.php on line 130

I got this answer from a forum " the paypal module is attempting to connect to the paypal server using fsock. If you are having an issue, I would first install/enable the curl extension. "

How do I enable curl and will that solve the issue?
Hello Blueks5, I'm sorry to hear that you're having problems with Paypal in PrestaShop. We unfortunately need MORE information than what you have provided. Have you tried to test payments with Paypal in Sandbox mode? What Paypal module are you using? Can you verify what version of PrestaShop that you're using? The fsockopen function typically works through port 80 (HTTP) or 443 (HTTPS). If fsockopen is attempting to use another port, it will not work unless that port is added to the firewall. By default, your account is on a shared IP address where a firewall prohibits opening additional ports. If you need to connect using a port number other than 80 or 443, you will need a dedicated IP address. Additionally, CURL is enabled on all of our servers. CURL is typically used through SSH or through a cron job. Make sure to look at Paypal's documentation and TEST through their sandbox server to verify that you're able to transmit. We do have many people who use Paypal, so it should be working. If you have any further questions or comments, please let us know. Regards, Arnel C.