card.io-Android-source icon indicating copy to clipboard operation
card.io-Android-source copied to clipboard

Question: Credit Card number length

Open johnaziz57 opened this issue 8 years ago • 0 comments

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 ?

johnaziz57 avatar Mar 24 '17 11:03 johnaziz57