-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The card start with 2221-2720 is not passing current checker.
Can consider to update the utils.
private static boolean checkIfMasterCard(int size, String value) {
int firstChars = Integer.parseInt(value.substring(0, 2));
int firstCharsRules2017 = Integer.parseInt(value.substring(0, 4));
if (size == 16
&& ((firstChars >= 51 && firstChars <= 55)
|| (firstCharsRules2017 >= 2221 && firstChars <= 2720))) {
return true;
} else {
return false;
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels