CodeIgniter Forums
PayPal NVP Library Integration - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: PayPal NVP Library Integration (/thread-32725.html)



PayPal NVP Library Integration - El Forum - 08-02-2010

[eluser]Unknown[/eluser]
Hello,

I've spent the better part of a day trying to get the PayPal NVP Library to work properly. I've entered in all my PayPal API (sandbox) information, I've double-checked my PayPal account settings to ensure my app will have access to the account, and I've uninstalled and reinstalled the library at least three times to ensure I'm not making a mistake.

Even when just testing the demo that's included with the library, I get the following error: "Failed to connect to Payment Gateway. Please try again."

Taking a look at the code, it looks like this error is generated when this line in paypal_api_lib.php is called:

Code:
$fp = fsockopen('ssl://api-3t.sandbox.paypal.com', 443, $errno, $errstr, 30);

I don't know what to do! Everything else seems to check out, and the only thing I can think of is that I'm developing in a local environment (WAMP server).

Does anyone have some insight?

Thanks in advance,

Jordan Koschei


PayPal NVP Library Integration - El Forum - 03-22-2011

[eluser]Unknown[/eluser]
Hi, I suspect that you do not not have the openssl extension enabled in php.ini

Best

Gary Corbett