diff --git a/src/CreditCard.php b/src/CreditCard.php index ce8f5d6..1994088 100644 --- a/src/CreditCard.php +++ b/src/CreditCard.php @@ -124,7 +124,7 @@ public static function validCreditCard($number, $type = null) public static function validCvc($cvc, $type) { - return (ctype_digit($cvc) && array_key_exists($type, self::$cards) && self::validCvcLength($cvc, $type)); + return (is_numeric($cvc) && array_key_exists($type, self::$cards) && self::validCvcLength($cvc, $type)); } public static function validDate($year, $month)