New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with validating cvv #31
Comments
Hi @RachelTakeuchi-minted, it looks like our documentation around the {
isValid: false,
isPotentiallyValid: true
} So var validityInfo = cardValidator.cvv('123', 4);
validityInfo.isPotentiallyValid; // true
validityInfo.isValid; // false Does that help? We'll update our documentation to correct the errors. |
I'm having a similar issue... I have set I think this function needs an additional argument for Line 48 in 4d4e408
|
I'm trying to validate a cvv for an American Express card, which expects a length of 4. I have a scenario where value=123 and maxLength=4 and I expect the cvv to not be valid, but it always says it is valid.
Does cvv validation just check for maxLength, and if it's less than that then it's valid? That doesn't make sense to me.. The problem is occurring in the min function, where it will always return the minimum DEFAULT_LENGTH if the maxLength I pass in is greater than it.
The text was updated successfully, but these errors were encountered: