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">http://en.wikipedia.org/wiki/Luhn_algorithm
Namespace:
ProScript
Assembly:
proscript-csharp (in proscript-csharp.dll) Version: 1.2.79.0 (1.2.79.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
card number to verify
Return Value
Type:
Booleantrue if the card number passes, false otherwise
See Also