app/code/community/Adyen/Payment/Helper/Data.php
public function getAdyenMerchantAccount($paymentMethod, $storeId = null)
    {
        $merchantAccount = trim($this->getConfigData('merchantAccount', 'adyen_abstract', $storeId));
        $merchantAccountPos = trim($this->getConfigData('pos_merchant_account', 'adyen_pos_cloud', $storeId));
        if ($paymentMethod == 'pos_cloud' && !empty($merchantAccountPos)) {
            return $merchantAccountPos;
        }

        return $merchantAccount;
    }
public function getAdyenMerchantAccount($paymentMethod, $storeId = null)
    {
        $merchantAccount = trim($this->getConfigData('merchantAccount', 'adyen_abstract', $storeId));
        $merchantAccountPos = trim($this->getConfigData('pos_merchant_account', 'adyen_pos_cloud', $storeId));
        if ($paymentMethod == 'pos_cloud' && !empty($merchantAccountPos)) {
            return $merchantAccountPos;
        }

        return $merchantAccount;
    }
public function getAdyenMerchantAccount ( $ paymentMethod , $ storeId = null ) { $ merchantAccount = trim ( $ this -> getConfigData ( 'merchantAccount' , 'adyen_abstract' , $ storeId ) ) ; $ merchantAccountPos = trim ( $ this -> getConfigData ( 'pos_merchant_account' , 'adyen_pos_cloud' , $ storeId ) ) ; if ( $ paymentMethod == 'pos_cloud' && ! empty ( $ merchantAccountPos ) ) { return $ merchantAccountPos ; } return $ merchantAccount ; }
Return the merchant account name configured for the proper payment method.
If it is not configured for the specific payment method,
return the merchant account name defined in required settings.

@param $paymentMethod
@param int|null $storeId
@return string
Return the merchant account name configured for the proper payment method . If it is not configured for the specific payment method return the merchant account name defined in required settings .