Closed mel-florance closed 6 years ago
This issue is how the checksums are calculated. Since the validation algorithm adds the digits and multiples of the digits together and then checks that it's divisible by 10, a sum of 0 would pass the validation.
I'll add tests and a validation to test that the summation of algorithm isn't 0.
This is now fixed in v2.3.0 of the package.
As in the title, the function returns true with a card number of zero, (or multiple zeros).
I dont know what to think, it look like a major issue.
I didnt search further in the library code to find a solution yet, but soon i'll try.