/** * @return Omnipay\Shop\Provider */ public function getModule() { if (is_null($this->module)) { $this->module = \CoreShop::getPaymentProvider("omnipay" . $this->gateway); } return $this->module; }