Example #1
0
 /**
  * @param $ccNumber
  * @return Bin the static model class
  */
 public static function getFullCardInfo($ccNumber)
 {
     if (!$ccNumber || strlen($ccNumber) < 6) {
         return false;
     }
     $bin = substr($ccNumber, 0, 6);
     $binModel = Bin::model()->with('binLevel')->with('bank')->with('country')->findByPk($bin);
     return $binModel;
 }