php-credit-card-validator icon indicating copy to clipboard operation
php-credit-card-validator copied to clipboard

Uncaught Error: Class

Open emresaracoglu opened this issue 7 years ago • 3 comments

Hello,

I can getting this error:

Fatal error: Uncaught Error: Class 'CreditCard' not found in ..

I added with Composer but how I can Import your class in php file?

emresaracoglu avatar Dec 21 '17 10:12 emresaracoglu

What have you done to on your end? How did you try implementing script?

prezine avatar Dec 24 '17 05:12 prezine

$card = new \Inacho\CreditCard;

$card = CreditCard::validCreditCard('5500005555555559', 'mastercard');
print_r($card);

emresaracoglu avatar Dec 24 '17 15:12 emresaracoglu

You can try $card = \Inacho\CreditCard::validCreditCard('5500005555555559');

ltrtuan avatar Jan 07 '18 11:01 ltrtuan