IPN issues

RSHEPPARD
Contributor
Contributor

I have a site with a custom paypal payment button which was all working fine up until Aug 30th 2018. 

Normally payments would go through, an IPN would be sent and posted back looking like the following from the server logs:

"POST /ipn.php HTTP/1.1" 200 3 "-" "PayPal IPN ( https://www.paypal.com/ipn )"

This would trigger the backend functions and write the order to database successfully.

 

When payments stopped working I would see the following in the logs, which has a slightly different status of 407, following the 200

"POST /ipn.php HTTP/1.1" 200 407 "-" "PayPal IPN ( https://www.paypal.com/ipn )"

 

I read on the forum that some members were also having IPN issues and had either reissued SSL certificates or downgraded from TLS 1.3 to 1.2. But there were no concrete explanations of why the error had suddenly occurred. As these were hosting related I contacted my host who are always very obliging and knowledgeable. They suggested the code  discrepancies could be caused by the Mod_security module on an apache web server throwing false positives because the IPNs are wrongly detected as malicious behaviour. They 'white listed' certain rules to try and remedy the situation but still the payment process was not working our end. In fact the IPN from server log now had a  422 following the 200 as follows:

POST /ipn.php HTTP/1.1" 200 422 "-" "PayPal IPN ( https://www.paypal.com/ipn )"

 

Currently we are still not able to full fill orders on a normal basis when paypal is used and these IPN anomalies must have something to do with it. To be honest I am not the most advanced PHP programmer or PayPal expert..is there anyone out there who can shed some light on how we could solve this issue please?

 

 

 

 

Login to Me Too
11 REPLIES 11

RSHEPPARD
Contributor
Contributor

We havn't solved it yet even though we have verified the server to be running HTTP 1.1 and TLS 1.2 required now for communication with paypal's server.


We have also experimented with higher PHP versions as advised without any success.


As I point out below, I have a second site which accepts payments through Paypal running on the same server which seems to be working as normal post upgrade. This site is built using a different paypal configuration, namely paypal express. So maybe adapting the original site to use similar functions is the way forward.

 

I will update the post when it is fixed. Any further ideas your end welcome.

Login to Me Too

RSHEPPARD
Contributor
Contributor

Haven't Found your Answer?

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