Reputation: 3451
I have a weird issue with Paypal IPN. Every alternate transaction is failing. So let's say if first transactions goes well then second one fails. Similarly if 3rd one goes well then 4th one fails. HTTP status code I am getting for failed transactions in IPN history is 400. I have implemented the new Paypal host header changes that were newly introduced by them.
Any idea why this is happening?
IPN History
https://i.sstatic.net/CRiqU.png
IPN Detail
https://i.sstatic.net/j31xS.png
EDIT
I am using PHP with curl to do IPN work (using same sample code as available on Paypal website)
ANOTHER EDIT
Ok I found another code sample for PHP 5.2 from Paypal site. This one is slightly different than the one I am currently using. I tested it on Paypal Sandbox twice and it worked. Later on I will test it on live to see if it is working fine or not.
Upvotes: 0
Views: 210
Reputation: 3451
The new script I downloaded from Paypal website fixed the issue.
Upvotes: 0
Reputation: 1
Error 400 = bad request, this means that the get requests being made on the application layer (by your browser) may contain errors or the transport layer (syn, syn, ack, syn) 3 way hand shack is being interrupted. I would check your PC for Mallware to be on the safe side. Do a netstat -b in dos and see what's trying to get connections to the external network.
Also do a scan with malware bytes and a good virus scanner like Eset nod32.. Let us know how you get on^^
Upvotes: 0