IPN

mat8
Contributor
Contributor

Until a month ago my IPN set up worked fine since many years!

But now it doesn't work anymore.

Is there any substantial change that I have missed?

Thanks!

This is part the PHP code that worked fine for me:

 

$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);

Login to Me Too
2 REPLIES 2

angelleye
Advisor
Advisor
Your server / scripts need to be updated to use HTTP 1.1 and TLS 1.2.

See this info for details from PayPal: https://www.paypal.com/au/webapps/mpp/tls-http-upgrade

Sometimes, it's as simple as updating the 1.0 in your script to 1.1. Give that a try and see if it helps. If not you'll need to dig a little deeper in your server to ensure it supports HTTP 1.1.
Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

mat8
Contributor
Contributor

Thanks, changing from http 1.0 to http 1.1 finally worked. However I kept trying resending an IPN and it did not solve the problem after the change. Only after initiating a new IPN things are working as expected.

Now it seems to be working fine again.

Thanks!

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.