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:
| 0 | No error, this is a valid address. |
| 1 | The credit card number was null. |
| -1 | General validation error, see error description. |
See Also
CheckCCExpire |
CheckLuhn |
CheckString |
ConvertNonNumeric |
GetCardType |
KeepRange |
RemoveNonNumeric