The validations that I know of are as follows:
- Checksum: the entire card number must be zero. (range 0-9)
- Check the first digit for card type
- Check length on card type
- Check the CCV length for the type of card (I think that all the main types are 3 anyway)
- Of course, make sure that the card type is accepted, and also not expired.
Are there any other validations :) (I expect that many people are not aware of all these things)
The reason I'm asking for is because I heard that there was a checksum number against expiration or CCV. I just wanted to check.
source
share