php-credit-card-validator
php-credit-card-validator copied to clipboard
Use is_numeric instead of ctype_digit to validate numeric type
Using ctype_digit doesn't work as expected. For example for the CVC of 243 which is valid it returns false. Using is_numeric is more appropriate in this case.