American Express Generator

American Express card numbers — 15 digits, 34/37 prefixes, Luhn check.

International Validation Generation

How generation works

The American Express generator builds a structurally valid sample using the same rules the validator enforces — check digits included. Use it for test data and fixtures; never for production records.

Install the package

bash
dotnet add package DocumentNumber.PaymentCardNumber.AmericanExpress.Generator

Generator in C#

Program.cs
using DocumentNumber.PaymentCardNumber.AmericanExpress.Generator;

var generator = new AmericanExpressPaymentCardGenerator();
var sample = generator.GenerateDocumentNumber();

Console.WriteLine(sample);

Live example

342633353118487 — a real American Express value accepted by the validator

Try American Express generation

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

Document type American Express International
Example: 342633353118487 — demo input is never stored.

Frequently asked questions

What is American Express?

American Express card numbers — 15 digits, 34/37 prefixes, Luhn check.

How does American Express generation work?

The generator builds a structurally valid American Express sample using the same rules the validator enforces — including check digits. Generated values are intended for tests and development only.

How do I install the American Express generator package?

dotnet add package DocumentNumber.PaymentCardNumber.AmericanExpress.Generator

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