card.io-Android-source
card.io-Android-source copied to clipboard
Question: Credit Card number length
General information
- SDK/Library version : 5.5.1
- Android Version and Device: All
Issue description
According to Wiki https://en.wikipedia.org/wiki/Payment_card_number, there are some cards that have multiple definition regarding the credit card length. while according to this method card.io-Android-source/card.io/src/main/java/io/card/payment/CardType.java#numberLength, this is not taken into consideration.
For example, Visa can be regarding number length 13, 16, 19, while in this code, visa is only defined by 16.
Do this needs to be changed ? Should it return the maximum , or most popular ?