Ecommerce Download
    Home     Submit Software     Add to Favorites     FreeFunFiles
 
 

 


CardCheck COM DLL
CardCheck provides developers with a way to validate credit card numbers. It can be used with any programming language that supports COM: Scripting languages (VBScript, JavaScript), Visual Basic (Versions 4 and up), VBA (Word, Excel, Access ...), VC++, BC++, Delphi, Power Builder to name only a few.

Supported Credit Cards are: VISA, Master Card - Eurocard, Discover - Novus, American Express, JCB and En Route.

NOTE: The evaluation version of CardCheck recognizes VISA cards ONLY.

CardCheck Installation
Installation of the component is very simple using the provided installation utility. Two files cardcheck.dll and cardcheck.tlb are copied to the system directory (like \winnt\system32 for NT or \windows\system for Win95). However if you with to move the files to another directory remember to register the component using the resgsrv32 program.

Change to the directory where you copied the DLL and type:

regsvr32 cardcheck.dll

If you get an error message at the end of the installation procedure "cannot register...", some of your system files might need to be updated to the latest version.

If you need to update your system download the latest version of MFC libraries for Windows 9x/NT.
When the download is complete, open the cab file, extract it's contents and run the setup file.

Credit Card validation Example
Using the component is as simple as

Creating the object
Calling the Validate method
The following code demonstrates how to use CardCheck from VBScript. In this example we'll validate a fake credit card number: 3454 54564 54564.

Set CC = CreateObject("CardCheck.CreditCard")
If CC.Validate("3454 54564 54564","02/2002") = False Then
Response.Write "Sorry your Credit Card appears to be invalid."
Response.Write "<BR>" & CC.InvalidReason
else
Response.Write "Your Credit Card was accepted. Thank you for your business."
end if

By reading the value of the InvalidReason property we can determine why the credit card was not valid..




All Ecommerce Download .com contents copyright 2003 - 2008 Important Notices and Terms of Use. Contact Ecommerce Download .com