Adding issue related to IPN error by TimToronto. His query was as below
Hello - I'm trying to set up Ubercart with PayPal Sandbox for the first time.
Everything seemed to be going smoothly except for when it comes to the IPN and the order status updating properly when an order is complete.
I checked my logs and I see that the IPN seems to be coming through:
uc_paypal 2016-05-17 12:41 Receiving IPN at URL for order 4. Array... Anonymous (not verified)
And if I check the array it has [payment_status] => Completed
But that is immediately followed by:
uc_paypal 2016-05-17 12:41 IPN failed with HTTP error Bad Request, code 400. Anonymous (not verified)
If someone could point me in the right direction that would be super helpful! Thank you.
@abrlam provided the solutions for this as well, link is Fix for 400 Bad Request Error (IPN)
I am adding patch file so that it should follow coding standards.