1

I am facing a strange issue with PayPal express checkout. This is the first time i noticed it.

When a customer enters a separate billing and shipping addresses and goes to PayPal checkout page, On PayPal checkout page instead of showing different billing and shipping address its showing same address ie: Shipping address for both billing and shipping address field.

Here the address displayed was inserted as a shipping address billing address was different

1

Hope following code will help for you:

Find app/code/core/Mage/Paypal/Model/Standard.php file and go to line number 134 (According to Magento CE 1.8)

Replace following code 

$address = $isOrderVirtual ? $order->getBillingAddress() : $order->getShippingAddress();
if ($isOrderVirtual) {
    $api->setNoShipping(true);
} elseif ($address->validate()) {
    $api->setAddress($address);
}

with 

$address =$order->getBillingAddress();
if ($address->validate()) {
    $api->setAddress($address);
}
  • This is not working with Magento 1.8. I am using express checkout i also tried the same tweak in Express.php but didn't worked. – Dexter Feb 12 '14 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.