CreditCard Validator

Verifies that credit card number is valid.

The CreditCard Validator will help you tell: 1. if a credit card number is valid, 2. which credit card vendor handles that number. It is a simple Applet to demonstrate the use of the ValidateCreditCard class. It validates the prefix and the checkdigit. It does *not* contact the credit card company to ensure that number has actually been issued and that the account is in good standing. It will also tell you which of the following credit card companies issued the card: Amex, Diners Club, Carte Blanche, Discover, enRoute, JCB, MasterCard or Visa. ATM cards use a different secret scheme which this program does not handle. Unfortunately, there is not even a reliable way to tell an ATM card from a credit card just by the number. It is primarily designed to be included in your own Java program, though it can be used standalone or as an Applet. To install, Extract the zip download with WinZip, available from winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the (user folder names) option. To run as an application, type: java.exe -jar C:\com\mindprod\creditcard\creditcard.jar adjusting as necessary to account for where the jar file is. You must have Java version 1.1 or later installed to use this package. See mindprod.com/jgloss/installingjava.html for details.

Changes: convert to JDK 1.5. simplify code using enum.

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/applet/creditcard.html

CreditCard Validator screenshot

...

Special permissions

You may include the CreditCard Validator on any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more