Skip to content

Commit 0737b31

Browse files
authored
MAGETWO-64714: [GitHub] [PR] Fix quote's outdated shipping address overwriting PayPal Express shipping address #8568
2 parents e4a5d38 + 3b63da0 commit 0737b31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Braintree/Model/Paypal/Helper/QuoteUpdater.php

+5
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,10 @@ private function updateAddressData(Address $address, array $addressData)
182182
$address->setRegionCode($addressData['region']);
183183
$address->setCountryId($addressData['countryCodeAlpha2']);
184184
$address->setPostcode($addressData['postalCode']);
185+
186+
// PayPal's address supposes not saving against customer account
187+
$address->setSaveInAddressBook(false);
188+
$address->setSameAsBilling(false);
189+
$address->setCustomerAddressId(null);
185190
}
186191
}

0 commit comments

Comments
 (0)