source/Core/CreditCardValidator.php
public function isValidCard($number, $type = "", $date = "")
    {
        // cleanup
        $number = preg_replace("/[^0-9]/", "", $number);

        return (!$this->_isExpired($date) && $this->_isValidType($type, $number) && $this->_isValidNumer($number));
    }
public function isValidCard($number, $type = "", $date = "")
    {
        // cleanup
        $number = preg_replace("/[^0-9]/", "", $number);

        return (!$this->_isExpired($date) && $this->_isValidType($type, $number) && $this->_isValidNumer($number));
    }
public function isValidCard ( $ number , $ type = "" , $ date = "" ) { // cleanup $ number = preg_replace ( "/[^0-9]/" , "" , $ number ) ; return ( ! $ this -> _isExpired ( $ date ) && $ this -> _isValidType ( $ type , $ number ) && $ this -> _isValidNumer ( $ number ) ) ; }
Checks if provided credit card information is valid. Returns TRUE if valid

@param object $number credit card number
@param string $type   credit card type [optional]
@param string $date   card expiration date [optional]

@return bool
Checks if provided credit card information is valid . Returns TRUE if valid