Those who, after a seemingly successful upgrade from Magento 1.3.x to Magento 1.4.0.1, have problems with Magento acknowledging PayPal payments (changing order status from Pending Payment to Processing) and sending out New Order emails to their clients should do/check the following things:
- In PayPal: Go to My Account -> Profiles -> More Options -> Instant Payment Notification Preferences -> Edit Settings and change instant payment notification (IPN) URL in PayPal IPN settings from:
http://www.yoursite.com/paypal/standard/ipn/
to:
http://www.yoursite.com/paypal/ipn/standard/
- In Magento admin panel: Go to Systems -> Configuration -> Payment Methods -> PayPal Website Payments Standard and check that Payment Action is set to Sale and New Order status to Processing
- In Magento code: In file Ipn.php located in app/code/core/Mage/Paypal/Model/Ipn.php find function:
public function getIpnFormData($key = null)comment out line:
//return isset($this->_ipnFormData[$key]) ? $this->_ipnFormData[$key] : null;and add the following line immediately after it:
return isset($this->_ipnFormData[$key]) ? urldecode($this->_ipnFormData[$key]) : null;
This should do it. Your order status should be changing from Pending Payment to Processing and emails should work also.

Posts
You haven’t found the same fix for 1.4.1.1 yet have you? That snippet of code isn’t in the new ipn.php file.
December 1, 2010 @ 9:39 am
No, but we are on 1.4.1.1 and don’t have this problem. Do you?
December 1, 2010 @ 9:44 am
On 1.4.1.1 we are still suffering from IPN failure.
December 5, 2010 @ 11:55 am
Are you going to upgrade to 1.4.2.0 to see whether it solves the problem?
December 9, 2010 @ 5:54 pm
We have already upgraded but that didn’t fix the problem. Magento seems to further ignore the IPN messages even though they are being sent. We have a multilingual/multidomain store and I’ve found on some forum thread that it may be related; No fix was provided, however to this situation.
December 11, 2010 @ 12:46 am
We have the same Problem with Magento 1.4.1.1 but the Problem just started on December 10th, althought we are on 1.4.1.1 for a long time.
Any Ideas?
December 13, 2010 @ 3:20 pm
Hello,
I am using 1.4.0.1 and was getting the same error.
I was not using IPN for my paypal account.
I have activated IPN in paypal and done all settings as mentioned above.
Now checkout process is working ok and after redirecting on paypal for payment I am getting following error. Earlier it was working ok with shipping address.
“Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.”
Can you please help.
Thanks
Riti
December 24, 2010 @ 8:26 am
Dear sir
I am using multiple domain with magento v 1.4.0
And I am having same problem of paypal .
I have two domain named websites then how can you configure for both for an account.
Thanks
January 8, 2011 @ 8:24 am
The PayPal module in 1.4.0.1 is pretty bad. We posted a patch for some other issues at http://www.boostingecommerce.com/fix-for-magento-1-4-0-1-paypal-and-shipping-costs
May 29, 2011 @ 11:50 pm