Simple Logic
Solutions Case Studies Resellers Support Resources Search Contact About

Solutions
Developer Solutions 
 Developer COM Objects 
  Card Check 
  dB Tools 
 Licensing Component 
 
Products & Services
Web Applications
Electronic Commerce
Business Solutions
Developer Solutions
Ministry Solutions
Application Services
Intelligence Services
Internet Services
 
Solutions by Category
 

Card Check

Download source code.

Overview:

This COM component checks credit card numbers to see if they are valid against the MOD 10 algorithm. The return status is null if invalid, and the credit card numbers only if valid. All spaces, dashes, etc are removed. The date is also verified to see if it is current and returns the last day of the month for the valid date in mm/dd/yyyy format. Supports credit cards with 13, 15, and 16 digits.

Language: Visual Basic 6

Platform: Intel x86

Download:

NOTE: If you are looking for a complete software solution to validate credit card numbers,
please visit the Secure Merchant Credit Card Validation web site.

This component is available in two packages.
Download Full Install (recommended)

Download DLL Only

Reference:

simplelogic.cardcheck

Properties:

none

Methods:

ccDate: Date
ccNumber: String

Events:

none

Collections:

none

Example:

CardCheck.asp
<%@Language=vbscript

ccNumber = request("cardnumber")
ccDate = request("cardexpiresdate")

set obj = server.createobject("simplelogic.cardcheck")
ccDate = obj.ccDate(ccDate)
ccNumber = obj.ccNumber(ccNumber)

if isnull(ccnumber) = false then 
	response.write "Card Number is " & ccNumber
else
	response.write "Card Number is invalid."
end if

if isnull(ccDate) = false then 
	response.write "Card Date is " & ccDate
else
	response.write "Card Date is invalid."
end if
%>
CardCheck.html
<FORM ACTION="CardCheck.asp">
Credit Card Number: <INPUT TYPE="text" name="cardnumber">
<BR>
Credit Card Expiration Date:<INPUT TYPE="text" name="cardexpiresdate">
<INPUT TYPE="submit" name="Submit">
</FORM>


















 

Simple Answers. Logical Solutions.

Top of page
Copyright © 1996-2005 Simple Logic Corporation. All rights reserved. Terms of use / legal information. Contact us.