jQuery Credit Card Validator
First up is the free jQuery Credit Card Validator plugin. This thing is absolutely incredible with such an easy setup and some valuable features.
You can browse the entire source code on GitHub and download the latest copy in a .zip archive. This plugin automatically detects and validates credit card numbers as they’re entered into a site. It uses the Luhn algorithm as a checksum to validate credit card numbers in real time.
Each CC type has different requirements and you can see these updated in real time. For example, a MasterCard and Visa card each have different numeric sequences. So when a certain CC number is entered this script can auto-detect the type. This gives visitors a sense of trust when entering their card.
You can download the source in pure jQuery but it’s also available in CoffeeScript for editing. The main function takes optional properties based on the card type and validity checks(valid length, card #, and checksum).
If you’re looking for automated CC validation this is the only plugin you need.