/** * Retrieve array of credit card types * * @return array */ public function getCcTypes() { $pTypes = parent::getCcTypes(); $this->_ccTypes = array(); foreach ($pTypes as $code => $name) { $this->_ccTypes[$code] = $name; } return $this->_ccTypes; }
/** * Retrieve array of credit card types * * @return array */ public function getCcTypes() { $pTypes = parent::getCcTypes(); $this->_ccTypes = array(); $added = false; foreach ($pTypes as $code => $name) { if ($code == 'OT') { $added = true; $this->addExtraCcTypes(); } $this->_ccTypes[$code] = $name; } if (!$added) { $this->addExtraCcTypes(); } return $this->_ccTypes; }