Home » Magento27 August 2012

Magento: Paypal Express Checkout Showing Empty Order Data [FIXED]

I am using Magento verion 1.4.0.1 and I had this issue. I had enabled Paypal Express Checkout payment method. When I choose this method on checkout, I was redirected to Paypal website but order data was not displayed there.

The main reason in my case was due to applied discount to the cart. I had created a shopping cart price rule and applied it to the cart. And, when I choose Paypal Express Checkout as payment method, the paypal website would show empty order data.

However, if I don’t apply discount to the cart, then everything is okay. While choosing Paypal Express, I am redirected to Paypal website and I could see order details there.

So, I reckon this issue to be related with discount / promotion rule applied to cart.

SOLUTION / FIX

To solve this issue, I created local copy of two files of core Paypal module. Creating local copy means copying files from ‘core‘ folder to ‘local‘ folder maintaining the same folder structure.

I copied these two core files:-

– app/code/core/Mage/Paypal/Helper/Data.php
– app/code/core/Mage/Paypal/Model/Express/Checkout.php

To this local folder location:-

– app/code/local/Mage/Paypal/Helper/Data.php
– app/code/local/Mage/Paypal/Model/Express/Checkout.php

After that, I made some changes to these files.

1) Changes made on app/code/local/Mage/Paypal/Helper/Data.php

– Commented some lines of code and added new lines of code
– In Magento 1.4.0.1, the code to comment is present from line #203

2) Added a new function on app/code/local/Mage/Paypal/Model/Express/Checkout.php

Hope it helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • i am facing this issue in Magento 1.5.1.0 . i can’t see any lines like u mentioned to comment out in app/code/core/Mage/Paypal/Helper/Data.php