Skip to content
Snippets Groups Projects
Commit a1962404 authored by Iryna Lagno's avatar Iryna Lagno
Browse files

MAGETWO-39734: Billing Agreement can't be signed up during checkout:

-fix after CR
parent a6d27191
Branches
No related merge requests found
......@@ -27,11 +27,6 @@ class PaymentMethodManagement implements \Magento\Quote\Api\PaymentMethodManagem
*/
protected $methodList;
/**
* @var
*/
protected $addressFactory;
/**
* Constructor
*
......@@ -74,10 +69,6 @@ class PaymentMethodManagement implements \Magento\Quote\Api\PaymentMethodManagem
$payment->importData($data);
if ($quote->isVirtual()) {
// check if billing address is set
// if ($quote->getBillingAddress()->getCountryId() === null) {
// throw new InvalidTransitionException(__('Billing address is not set'));
// }
$quote->getBillingAddress()->setPaymentMethod($payment->getMethod());
} else {
// check if shipping address is set
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment