Welcome Guest, Not a member yet? Register   Sign In
PayPal NVP Library Integration


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:

$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

Hi, I suspect that you do not not have the openssl extension enabled in php.ini


Gary Corbett

Theme © iAndrew 2016 - Forum software by © MyBB