public function index() { $billingService = BOL_BillingService::getInstance(); $language = OW::getLanguage(); $ccbillConfigForm = new CcbillConfigForm(); $this->addForm($ccbillConfigForm); if (OW::getRequest()->isPost() && $ccbillConfigForm->isValid($_POST)) { $ccbillConfigForm->process(); OW::getFeedback()->info($language->text('billingccbill', 'settings_updated')); $this->redirect(); } $adapter = new BILLINGCCBILL_CLASS_CcbillAdapter(); $this->assign('logoUrl', $adapter->getLogoUrl()); $gateway = $billingService->findGatewayByKey(BILLINGCCBILL_CLASS_CcbillAdapter::GATEWAY_KEY); $this->assign('gateway', $gateway); $this->assign('activeCurrency', $billingService->getActiveCurrency()); $supported = $billingService->currencyIsSupported($gateway->currencies); $this->assign('currSupported', $supported); $subAccounts = $adapter->getAdditionalSubaccounts(); $this->assign('subAccounts', $subAccounts); $this->setPageHeading(OW::getLanguage()->text('billingccbill', 'config_page_heading')); $this->setPageHeadingIconClass('ow_ic_app'); }