I have an issue with Magento 1.9 and PayPal payment method. When a customer pays with PayPal and there is a payment review the order in such cases order status would be set to "Payment Review" that is correct.
However, the problem is, in instances where the payment actually fails (i.e., insufficient funds in customer account), Magento updates order status to "Processing" & customers ends up getting free goods.
What I need to do is, when such "Failed" IPN invoked I need to set "Closed" status to that particular order. I spent more that 4 hours to find the solution but didn't found any proper solution.
If someone have any fixes for this please share with me. PayPal IPN response variables:
[payer_email] => firstname.lastname@example.org [payer_id] => xxxxxxxxxxxx [payer_status] => unverified [payment_date] => 14:33:46 Jun 08, 2015 PDT [payment_gross] => 43.24 [payment_status] => Failed [payment_type] => echeck [protection_eligibility] => Ineligible
Any help would be highly appreciated.