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 1e54e4c8 authored by Alessio Zampatti's avatar Alessio Zampatti Committed by GitHub

[PW-978] Fix for HPP not retrieving the correct merchantAccount (#392)

* add $store to retrieve correct merchant account

* add $store to retrieve correct merchant account

* getId
parent aba8c439
......@@ -194,7 +194,7 @@ class Redirect extends \Magento\Payment\Block\Form
$this->_order->getGrandTotal(),
$orderCurrencyCode
);
$merchantAccount = trim($this->_adyenHelper->getAdyenAbstractConfigData('merchant_account'));
$merchantAccount = trim($this->_adyenHelper->getAdyenAbstractConfigData('merchant_account', $this->_order->getStoreId()));
$shopperEmail = $this->_order->getCustomerEmail();
$customerId = $this->_order->getCustomerId();
$shopperIP = $this->_order->getRemoteIp();
......
......@@ -191,7 +191,7 @@ class PaymentMethods extends AbstractHelper
protected function _fetchHppMethods($store, $country)
{
$skinCode = $this->_adyenHelper->getAdyenHppConfigData('skin_code');
$merchantAccount = $this->_adyenHelper->getAdyenAbstractConfigData('merchant_account');
$merchantAccount = $this->_adyenHelper->getAdyenAbstractConfigData('merchant_account', $store->getId());
if (!$skinCode || !$merchantAccount) {
return [];
......
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