Validates a US Credit Card number for the proper length and then using the 1212 mod 10 algorithm

Namespace: Asi.iBO
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public static bool IsValidCCNumber(
	string ccType,
	string ccNumber
)
Visual Basic
Public Shared Function IsValidCCNumber ( _
	ccType As String, _
	ccNumber As String _
) As Boolean
Visual C++
public:
static bool IsValidCCNumber(
	String^ ccType, 
	String^ ccNumber
)

Parameters

ccType
Type: System..::..String
The credit card type
ccNumber
Type: System..::..String
The credit card number to validate

Return Value

True if the credit card number is valid, false otherwise

Remarks

Only really validates MC, VISA, DISC, and AMEX cards. All others return true

See Also