Home Page Customer Care Services Order Now Search Contact Us Privacy Statement ChamberGates
Order Now Web Hosting Dedicated Servers Domain Name Registration Colocation Services Reseller Opportunities Web Design
Page Location
Home Page
Support
Web Development
atcValidate
ValidateCCNumber
ValidateCCNumber

Autocorrects and checks the credit card number and.

object.ValidateAddress(Number, CardType)

Arguments

object 
 Required. Always the name of a atcValidate Object
Number 
 Required. Credit card number, this may be a null string. All punctuation will be removed and only the numbers will be evaluated and the resultant string will be returned if this is a valid credit card number.
CardType 
 Required. Credit card type, if this is specified then the credit card number must match the card type given. Upon return this will be set to the card type if this is a valid credit card number.

Remarks

The ValidateCCNumber method was designed to accept user input and therefore expects a certain amount of human error. All punctuation will be removed from the input and then testing will begin. This method uses known bank card network rules to determine if the credit number is valid. It does not check to see if the card is active or whether it has been reported stolen.

The method will return one of the following values:

0No error, this is a valid address.
1The credit card number was null.
-1General validation error, see error description.

See Also

CheckCCExpire | CheckLuhn | CheckString | ConvertNonNumeric | GetCardType | KeepRange | RemoveNonNumeric

Copyright (c) 1999-2004 ChamberGates. All Rights Reserved.