Skip to content

Commit cb06de6

Browse files
committed
MAGETWO-56925: [Backport] - “No Payment method available” when customer tries to ship his items to billing restricted country for 2.0.x
1 parent e638c0b commit cb06de6

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Checkout/Helper

1 file changed

+6
-2
lines changed

app/code/Magento/Checkout/Helper/Data.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
2222

2323
const XML_PATH_CUSTOMER_MUST_BE_LOGGED = 'checkout/options/customer_must_be_logged';
2424

25-
const XML_PATH_DISPLAY_BILLING_ADDRESS_ON = 'checkout/options/display_billing_address_on';
25+
/**
26+
* @deprecated Need to be replaced by constant
27+
* @var string
28+
*/
29+
private $xmlPathDisplayBillingAddressOn = 'checkout/options/display_billing_address_on';
2630

2731
/**
2832
* @var \Magento\Store\Model\StoreManagerInterface
@@ -414,7 +418,7 @@ public function isCustomerMustBeLogged()
414418
public function isDisplayBillingOnPaymentMethodAvailable()
415419
{
416420
return (bool) !$this->scopeConfig->getValue(
417-
self::XML_PATH_DISPLAY_BILLING_ADDRESS_ON,
421+
$this->xmlPathDisplayBillingAddressOn,
418422
ScopeInterface::SCOPE_STORE
419423
);
420424
}

0 commit comments

Comments
 (0)