VISA Validator

Visa card numbers — 13, 16 or 19 digits starting with 4, Luhn check.

International Validation Generation

How validation works

The validator verifies the Visa prefix and length, then applies the Luhn checksum.

Install the package

bash
dotnet add package DocumentNumber.PaymentCardNumber.VISA.Validator

Validator in C#

Program.cs
using DocumentNumber.PaymentCardNumber.VISA.Validator;

var validator = new VisaPaymentCardValidator();
var isValid = validator.Validate("4072347806866");

Console.WriteLine(isValid ? "Valid" : "Invalid");

Live example

4072347806866 — a real VISA value accepted by the validator

Try VISA validation

Runs the exact same library code your application uses. Nothing you enter is stored.

Document type VISA International
Example: 4072347806866 — demo input is never stored.

Frequently asked questions

What is VISA?

Visa card numbers — 13, 16 or 19 digits starting with 4, Luhn check.

How does VISA validation work?

The validator verifies the Visa prefix and length, then applies the Luhn checksum.

How do I install the VISA validator package?

dotnet add package DocumentNumber.PaymentCardNumber.VISA.Validator

Is the value I enter in the demo stored?

No. Demo inputs are processed in memory for the current request only and are never persisted or shared.

Related document types