CardVal is a DLL that allows developers to easily include credit card validation/identification in their applications.
CardVal is easy to use, requiring only one line of code to validate a credit card.
CardVal also has a low filesize (just 32kb), minimizing the impact upon your software's installation size.
CardVal can validate the following types of credit cards:
- VISA
- Mastercard
- Eurocard
- American Express
- Diners Club
- Carte Blanche
- Discover
- enRoute
- JCB
CardVal can be used with any programming language that supports COM.
E.g.:
VBScript, JavaScript, Visual Basic (Versions 4 and above), VBA (Word, Excel, Access etc.), Visual C++, Borland C++, Delphi, Power Builder, Java, ASP and more.
Here is an example piece of Visual Basic code that will do a simple validation check on a VISA card:
Dim CardVal As CardValTrial.Validator
Set CardVal = New CardValTrial.Validator
Result = CardVal.CheckCC("4111-1111-1111-1111", "V")
If Result <> 0 Then MsgBox "Credit Card Not Valid!"
CardVal can also perform much more complex validation, and is capable of returning the following results (including combinations of them):
- Card is Valid
- Card Number Does Not Match Specified Card Type
- Card Number Length is Invalid
- Card Checksum Failed (Main Validation)
- Unknown Card Type
|