コード例 #1
0
ファイル: Config.php プロジェクト: xiaoguizhidao/tyler-live
 /**
  * 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;
 }
コード例 #2
0
ファイル: Config.php プロジェクト: ronseigel/agent-ohm
 /**
  * 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;
 }