public function initSettings() { $storeId = $this->getStore(); $apitoken = $this->_scopeConfig->getValue('payment/paynl/apitoken', \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeId); $serviceId = $this->_scopeConfig->getValue('payment/paynl/serviceid', \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeId); \Paynl\Config::setApitoken($apitoken); \Paynl\Config::setServiceId($serviceId); }