Credit Card Validation Java Component
Thank you for taking the time to evaluating our Product
This is an evaluation (demo) package. The Java Component being distributed
is a modified version from the actual commercial product. Only VISA
credit cards are recognized in this demo. In the full commercial
product all of the major credit cards are recognized.
Please visit http://products.dmmw.com for additional information
and documentation.
Packing List
CreditCard.class | | The java component |
CreditCard.txt | | A doc outlining the available methods |
ConsoleTest.class | | A simple example program |
ConsoleTest.java | | Source code for the sample program |
CreditCardDemo.jar | | A standalone application example |
help.html | | Help file for the standalone application example |
README.txt | | This file in text format |
licence.txt | | The license file in text format |
licence.html | | The license file in HTML format |
readme.html | | This file in HTML format |
Usage
You should be familiar with Java in order to use this component. I will
assume that your SDK is installed and running correctly. The commands
I give below work with Java 1.3 in Windows (you may have to adjust them
for your version and/or operating system).
To run the standalone application:
java -jar CreditCardDemo.jar
Notes: do not un-jar this package
To run the simple example program:
java ConsoleTest <cardNumber>
Notes: <cardNumber> needs quotes (") if you are passing it a number
with spaces or hyphens. Quotes are NOT needed if it is composed
of digits only.
To create you own test:
- create a java source file that calls the constructor and methods in CreditCard.class (use CreditCard.txt to view all the available methods in this demo version of CreditCard.class - you may also view the javadocs for the full featured commercial version in the support area of http://products.dmmw.com)
- You do NOT need to import the class CreditCard as long as it is in the same directory as you newly created source file (and if your CLASSPATH has the current directory in it.
- Compile your source code and run the program.
[Return to Intro Page]