From a19624049a6cb5766db54f4ac97ead35bda85d59 Mon Sep 17 00:00:00 2001 From: Iryna Lagno <ilagno@ebay.com> Date: Thu, 9 Jul 2015 11:50:56 +0300 Subject: [PATCH] MAGETWO-39734: Billing Agreement can't be signed up during checkout: -fix after CR --- app/code/Magento/Quote/Model/PaymentMethodManagement.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/code/Magento/Quote/Model/PaymentMethodManagement.php b/app/code/Magento/Quote/Model/PaymentMethodManagement.php index 925a4e2ab37..d29e3732d74 100644 --- a/app/code/Magento/Quote/Model/PaymentMethodManagement.php +++ b/app/code/Magento/Quote/Model/PaymentMethodManagement.php @@ -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 -- GitLab