Skip to content

Commit 8c4d124

Browse files
committed
MAGETWO-53714: BNCODE is not send in PayPal solutions properly for CE and EE
1 parent c2286a5 commit 8c4d124

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ abstract class AbstractConfig implements ConfigInterface
5555
*/
5656
private $productMetadata;
5757

58+
/**
59+
* @var string
60+
*/
61+
private static $bnCode = 'Magento_Cart_%s';
62+
5863
/**
5964
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
6065
*/
@@ -329,12 +334,7 @@ public function isMethodSupportedForCountry($method = null, $countryCode = null)
329334
*/
330335
public function getBuildNotationCode()
331336
{
332-
$bnCode = $this->_scopeConfig->getValue(
333-
'paypal/bncode',
334-
ScopeInterface::SCOPE_STORE,
335-
$this->_storeId
336-
);
337-
return sprintf($bnCode, $this->getProductMetadata()->getEdition());
337+
return sprintf(self::$bnCode, $this->getProductMetadata()->getEdition());
338338
}
339339

340340
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
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>
1211
<style>
1312
<logo></logo>
1413
</style>

0 commit comments

Comments
 (0)