FinancialCardVerifyCardChecksum Method |
This method takes a card number and applies Luhn's algorithm to verify
the card checksum. This method can detect minor transpositions and
obviously invalid card numbers, but it cannot detect fake credit card numbers.
See http://en.wikipedia.org/wiki/Luhn_algorithm
Namespace:
EasyScriptAPI
Assembly:
EasyScriptAPI (in EasyScriptAPI.dll) Version: 3.5.29.0 (3.5.29.0)
Syntax public static bool VerifyCardChecksum(
string cardNumber
)
Public Shared Function VerifyCardChecksum (
cardNumber As String
) As Boolean
public:
static bool VerifyCardChecksum(
String^ cardNumber
)
static member VerifyCardChecksum :
cardNumber : string -> bool
Parameters
- cardNumber
- Type: SystemString
the credit card number to verify
Return Value
Type:
BooleanTrue if the card number passes, false otherwise
See Also