We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 28bc0f70 authored by Giorgos Adam's avatar Giorgos Adam Committed by GitHub

Merge pull request #273 from Adyen/dl-storeview

Use store scope when populating HPP methods
parents 0a71a3f8 e01f7802
...@@ -154,10 +154,16 @@ class PaymentMethods extends AbstractHelper ...@@ -154,10 +154,16 @@ class PaymentMethods extends AbstractHelper
{ {
$paymentMethods = []; $paymentMethods = [];
$ccEnabled = $this->_config->getValue('payment/'.\Adyen\Payment\Model\Ui\AdyenCcConfigProvider::CODE.'/active'); $ccEnabled = $this->_config->getValue(
'payment/' . \Adyen\Payment\Model\Ui\AdyenCcConfigProvider::CODE . '/active',
\Magento\Store\Model\ScopeInterface::SCOPE_STORES,
$store->getCode()
);
$ccTypes = array_keys($this->_adyenHelper->getCcTypesAltData()); $ccTypes = array_keys($this->_adyenHelper->getCcTypesAltData());
$sepaEnabled = $this->_config->getValue( $sepaEnabled = $this->_config->getValue(
'payment/'.\Adyen\Payment\Model\Ui\AdyenSepaConfigProvider::CODE.'/active' 'payment/' . \Adyen\Payment\Model\Ui\AdyenSepaConfigProvider::CODE . '/active',
\Magento\Store\Model\ScopeInterface::SCOPE_STORES,
$store->getCode()
); );
foreach ($this->_fetchHppMethods($store, $country) as $methodCode => $methodData) { foreach ($this->_fetchHppMethods($store, $country) as $methodCode => $methodData) {
...@@ -192,7 +198,7 @@ class PaymentMethods extends AbstractHelper ...@@ -192,7 +198,7 @@ class PaymentMethods extends AbstractHelper
} }
$adyFields = [ $adyFields = [
"paymentAmount" => (int) $this->_adyenHelper->formatAmount( "paymentAmount" => (int)$this->_adyenHelper->formatAmount(
$this->_getCurrentPaymentAmount(), $this->_getCurrentPaymentAmount(),
$this->_getCurrentCurrencyCode($store) $this->_getCurrentCurrencyCode($store)
), ),
...@@ -228,9 +234,9 @@ class PaymentMethods extends AbstractHelper ...@@ -228,9 +234,9 @@ class PaymentMethods extends AbstractHelper
$themeCode = "Magento/blank"; $themeCode = "Magento/blank";
$themeId = $this->_design->getConfigurationDesignTheme(\Magento\Framework\App\Area::AREA_FRONTEND); $themeId = $this->_design->getConfigurationDesignTheme(\Magento\Framework\App\Area::AREA_FRONTEND);
if(!empty($themeId)) { if (!empty($themeId)) {
$theme = $this->_themeProvider->getThemeById($themeId); $theme = $this->_themeProvider->getThemeById($themeId);
if($theme && !empty($theme->getCode())) { if ($theme && !empty($theme->getCode())) {
$themeCode = $theme->getCode(); $themeCode = $theme->getCode();
} }
} }
......
Markdown is supported
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