Java PaymentCardGenerator Save

A Java library for generating mathematically-valid credit card numbers for software testing. The API provides customizable criteria for generation, and is extensible to apply to any payment card type which uses Luhn validation (not limited to just credit cards).

Project README

PaymentCardGenerator v2.0.0

See LICENSE for this software's licensing terms.

PaymentCardGenerator is a Java library that aids in testing payment card processing systems. It generates random payment card numbers so that you don't have to use an actual card.

Card numbers are generated based on the criteria defined here:

Features

  • Supports generation of American Express, VISA, MasterCard and Discover
  • Easily extensible to support any type of payment card which uses Luhn validation. All you need to do is add a member to the CardType enumeration.
  • Numerous criteria for generating numbers, including by type, quantity, length and prefix
  • Future-proof: generate numbers based on your own criteria, even if the library doesn't have knowledge of the latest card number formats

Build Tasks

This project is known to build on Gradle 8.4.

task purpose
build Builds the project
check Runs the tests and code quality checks
clean Removes the build directory
jars Builds the source, javadoc and binary jars
publishToMavenLocal Published the jars to your local Maven cache

Donations

https://paypal.me/KurtisLoVerde/5

Thank you for your support!

Open Source Agenda is not affiliated with "Java PaymentCardGenerator" Project. README Source: kloverde/java-PaymentCardGenerator

Open Source Agenda Badge

Open Source Agenda Rating