public function process() { $values = $this->getValues(); $billingService = BOL_BillingService::getInstance(); $gwKey = BILLINGCCBILL_CLASS_CcbillAdapter::GATEWAY_KEY; $billingService->setGatewayConfigValue($gwKey, 'clientAccnum', $values['clientAccnum']); $billingService->setGatewayConfigValue($gwKey, 'clientSubacc', $values['clientSubacc']); $billingService->setGatewayConfigValue($gwKey, 'ccFormName', $values['ccFormName']); $billingService->setGatewayConfigValue($gwKey, 'ckFormName', $values['ckFormName']); $billingService->setGatewayConfigValue($gwKey, 'dpFormName', $values['dpFormName']); $billingService->setGatewayConfigValue($gwKey, 'edFormName', $values['edFormName']); $billingService->setGatewayConfigValue($gwKey, 'dynamicPricingSalt', $values['dynamicPricingSalt']); $billingService->setGatewayConfigValue($gwKey, 'datalinkUsername', $values['datalinkUsername']); $billingService->setGatewayConfigValue($gwKey, 'datalinkPassword', $values['datalinkPassword']); // update additional sub-account values $adapter = new BILLINGCCBILL_CLASS_CcbillAdapter(); $subAccounts = $adapter->getAdditionalSubaccounts(); if ($subAccounts) { foreach ($subAccounts as $key => $sub) { if (array_key_exists($key, $values)) { $billingService->setGatewayConfigValue($gwKey, $key, $values[$key]); } } } }