ProScript .NET Documentation
ProScript .NET Documentation
ProScript
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">http://en.wikipedia.org/wiki/Luhn_algorithm

Namespace: ProScript
Assembly: proscript-csharp (in proscript-csharp.dll) Version: 1.6.39.0 (1.6.39.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
  card number to verify

#### Return Value

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

#### Reference

FinancialCard Class
ProScript Namespace

Copyright 2015 Scriptel Corporation. All Rights Reserved.