public function init() { $this->gateway = $this->getParam("gateway"); $activeProviders = \CoreShop\Model\Configuration::get("OMNIPAY.ACTIVEPROVIDERS"); if (!is_array($activeProviders)) { $activeProviders = array(); } if (!in_array($this->gateway, $activeProviders)) { throw new \Exception("Not supported"); } parent::init(); $gatewayName = strtolower($this->getModule()->getGateway()->getShortName()); $pluginPath = PIMCORE_PLUGINS_PATH . "/Omnipay/views/scripts/" . $gatewayName; $this->view->setScriptPath(array_merge($this->view->getScriptPaths(), array($pluginPath, CORESHOP_TEMPLATE_BASE . '/scripts/omnipay/' . $gatewayName, CORESHOP_TEMPLATE_BASE . '/scripts/coreshop/omnipay/' . $gatewayName, CORESHOP_TEMPLATE_PATH . '/scripts/omnipay/' . $gatewayName, CORESHOP_TEMPLATE_PATH . '/scripts/coreshop/omnipay/' . $gatewayName, PIMCORE_WEBSITE_PATH . '/views/scripts/omnipay/' . $gatewayName, PIMCORE_WEBSITE_PATH . '/views/scripts/coreshop/omnipay/' . $gatewayName))); }
/** * @return Bankwire\Shop */ public function getModule() { return parent::getModule(); }