public function install() { if (!parent::install() || !$this->registerHook('footer') || !$this->registerHook('payment') || !$this->registerHook('paymentReturn') || !$this->registerHook('displayAdminOrder') || !$this->registerHook('header') || !$this->registerHook('displayBackOfficeHeader') || !HipayLogger::createTables() || !$this->_installOrderState()) { return false; } Configuration::updateGlobalValue('HIPAY_PROCESSING_QUEUE', 0); Configuration::updateGlobalValue('HIPAY_LAST_PROCESS', time()); HipayLogger::createTables(); return true; }