Skip to content

Commit ee21cf4

Browse files
MAGETWO-71675: Customer can't see available Payment Method for specific country
1 parent 914824f commit ee21cf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Checkout/Model/ShippingInformationManagement.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ public function saveAddressInformation(
151151
$address->setCustomerAddressId(null);
152152
}
153153

154+
if (!$billingAddress->getCustomerAddressId()) {
155+
$billingAddress->setCustomerAddressId(null);
156+
}
157+
154158
if (!$address->getCountryId()) {
155159
throw new StateException(__('The shipping address is missing. Set the address and try again.'));
156160
}

0 commit comments

Comments
 (0)