C# Keyboard Wedge API Documentation
C# Keyboard Wedge API Documentation
EasyScriptAPI
FinancialCard Class
FinancialCard Methods
GetIssuer Method
GetTrackOne Method
GetTrackTwo Method
IsNumberValid Method
Parse Method
ToString Method
VerifyCardChecksum Method

# FinancialCard VerifyCardChecksum 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
C#
VB
C++
F#
Copy

    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: System
  String
  the credit card number to verify

#### Return Value

Type: Boolean
True if the card number passes, false otherwise
See Also

#### Reference

FinancialCard Class
EasyScriptAPI Namespace