Skip to content

Commit 23b7fd1

Browse files
committed
MAGETWO-53281: Update BN Codes for Braintree/PayPal
1 parent 1e1eb19 commit 23b7fd1

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

app/code/Magento/Paypal/Model/AbstractConfig.php

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Paypal\Model;
77

8-
use Magento\Framework\App\ProductMetadataInterface;
98
use Magento\Payment\Model\Method\ConfigInterface;
109
use Magento\Payment\Model\MethodInterface;
1110
use Magento\Store\Model\ScopeInterface;
@@ -50,11 +49,6 @@ abstract class AbstractConfig implements ConfigInterface
5049
*/
5150
protected $pathPattern;
5251

53-
/**
54-
* @var ProductMetadataInterface
55-
*/
56-
private $productMetadata;
57-
5852
/**
5953
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
6054
*/
@@ -329,25 +323,10 @@ public function isMethodSupportedForCountry($method = null, $countryCode = null)
329323
*/
330324
public function getBuildNotationCode()
331325
{
332-
$bnCode = $this->_scopeConfig->getValue(
326+
return $this->_scopeConfig->getValue(
333327
'paypal/bncode',
334328
ScopeInterface::SCOPE_STORE,
335329
$this->_storeId
336330
);
337-
return sprintf($bnCode, $this->getProductMetadata()->getEdition());
338-
}
339-
340-
/**
341-
* The getter function to get the ProductMetadata
342-
*
343-
* @return ProductMetadataInterface
344-
* @deprecated
345-
*/
346-
protected function getProductMetadata()
347-
{
348-
if (!is_object($this->productMetadata)) {
349-
$this->productMetadata = ObjectManager::getInstance()->get(ProductMetadataInterface::class);
350-
}
351-
return $this->productMetadata;
352331
}
353332
}

app/code/Magento/Paypal/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
99
<default>
1010
<paypal>
11-
<bncode>Magento_Cart_%s</bncode>
11+
<bncode>Magento_Cart_Community</bncode>
1212
<style>
1313
<logo></logo>
1414
</style>

0 commit comments

Comments
 (0)