diff --git a/Model/Config.php b/Model/Config.php index 29918e22..cd4f3c9e 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -4,6 +4,7 @@ */ namespace Paynl\Payment\Model; +use Magento\Framework\App\Config\ScopeConfigInterface; /** * Description of Config @@ -26,21 +27,21 @@ public function __construct( public function getApiToken() { - return $this->_scopeConfigInterface->getValue('payment/paynl/apitoken'); + return $this->_scopeConfigInterface->getValue('payment/paynl/apitoken', 'store'); } public function getServiceId() { - return $this->_scopeConfigInterface->getValue('payment/paynl/serviceid'); + return $this->_scopeConfigInterface->getValue('payment/paynl/serviceid', 'store'); } public function isTestMode() { - return $this->_scopeConfigInterface->getValue('payment/paynl/testmode') == 1; + return $this->_scopeConfigInterface->getValue('payment/paynl/testmode', 'store') == 1; } public function getPaymentOptionId($methodCode){ - return $this->_scopeConfigInterface->getValue('payment/'.$methodCode.'/payment_option_id'); + return $this->_scopeConfigInterface->getValue('payment/'.$methodCode.'/payment_option_id', 'store'); } /**