CreditCardValidator 2.0.0

A library for validating and generating credit card numbers.

CreditCardValidator helps you implementing validations for the most common credit card brands, verifying length, prefixes and checking the card number through the Luhn algorithm if necessary.

There is a newer version of this package available.
See the version list below for details.
Install-Package CreditCardValidator -Version 2.0.0
dotnet add package CreditCardValidator --version 2.0.0
<PackageReference Include="CreditCardValidator" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CreditCardValidator --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CreditCardValidator, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CreditCardValidator as a Cake Addin
#addin nuget:?package=CreditCardValidator&version=2.0.0

// Install CreditCardValidator as a Cake Tool
#tool nuget:?package=CreditCardValidator&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

- Dropped support for .NET Framework 3.5.
- Added netstandard1.0 target.
- Added optional length parameter to CreditCardFactory.RandomCardNumber().
- Fixing typos.
- Removed support for Solo cards. The Solo card scheme was decommissioned permanently on 31 March 2011. CreditCardValidator is no longer detecting it.
- Removed project PCL Profile. It should be compatible with .NET Standard 1.0.
- Fixed issue where CreditCardFactory sometimes generates a number matching some brand for parameter CardIssuer.Unknown.

  • .NETCoreApp 1.0

  • .NETCoreApp 1.1

  • .NETCoreApp 2.0

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on CreditCardValidator:

Package Downloads
Package Description
A WebPago é uma plataforma financeira de multisserviços com foco em meio de pagamento, que ajuda seus clientes a cuidar de seu dinheiro. com uma nova experiência baseada na simplicidade e conectividade, reduzindo a necessidade de pessoal e burocracia.
Simulated payment API for the FHOÖ SWK5 Apollo project assignment.
An abstraction around various payment providers for .NET, currently with support for Stripe, PayPal, PayPal Credit Cards (merchant services), CoinBase, and ChargeBee. Supports subscriptions and one-off payments.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.1 37,405 10/1/2020
2.0.0 43,887 2/25/2020
1.4.6 250,610 11/18/2018
1.4.5 6,041 9/23/2018
1.4.1 27,201 11/6/2017
1.4.0 44,829 4/30/2016
1.3.0 40,722 9/8/2015
1.2.1 1,189 7/15/2015
1.2.0 998 7/13/2015