Closed trollboy closed 9 years ago
The CVC of MasterCard always have a length of 3 digits. For example: 123 What is the length of your CVC?
3 digits total
It should work fine. The CVC is only validated against the length defined in the rules.
This code will output bool(true)
:
var_dump(CreditCard::validCvc('123', 'mastercard'));
Check that you CVC don't contain spaces with the trim function
Verified that I'm running trim "179" fails still
Used my mastercard to test, has a cvc w 2 digits over 5