diff --git a/Model/MollieConfigProvider.php b/Model/MollieConfigProvider.php index 1fe2abd595c..24991d792ad 100644 --- a/Model/MollieConfigProvider.php +++ b/Model/MollieConfigProvider.php @@ -141,7 +141,7 @@ public function getMethodInstance($code) public function getConfig(): array { // Do not load the config when on the cart page. - if ($this->request->getControllerName() === 'cart') { + if (!$this->config->isModuleEnabled() || $this->request->getControllerName() === 'cart') { return []; }