We have a Magento store, when customers checkout but Paypal can’t process payment with followed error tips:

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.

Magento 1.x checkout but Paypal can't process payment

Usually this error happens when Magento is using the “address_override” option in their checkout or button code.  When this variable is set to “1”, it means that the address provided during your checkout is set to override any address in the customer’s PayPal account.  With this setting turned on, the customer would not have the option to edit the shipping address when they are redirected to PayPal for checkout.  If the buyer entered an invalid shipping address on your Magento website, they would probably see this error message.  Usually an address is invalid if the buyer didn’t enter one of the required values (name, address line 1, city, province/state, postal code and country ) or that information is not being sent to PayPal when the buyer is redirected to us for checkout.

I found address_override method in magento at

app/code/core/Mage/Paypal/Model/Api/Standard.php line:238 $request['address_override'] = 1;

We can do the following to fix the problem:

  1. Create folders Mage/Paypal/Model/Api under /app/code/local/
  2. Copy the file Standard.php from /app/code/core/Mage/Paypal/Model/Api
  3. Paste the file Standard.php to /app/code/local/Mage/Paypal/Model/Api
  4. Change the line 238 from
$request['address_override'] = 1;

to

$request['address_override'] = 0;
0 Likes
292 Views

You may also like

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter message.