Description
The CreditCardGen Generator generates many different types of credit card numbers that can be validated using the Luhn algorithm.
In This Article
Video Training
The following video can be used to see a quick tutorial on how to use the CreditCardGen Generator:
Generator Parameters
The following parameters may be configured for the CreditCardGen Generator. Items with an asterisk* are required.
- increment* - Reference to another Attribute who's value will determine how much the initial Credit Card value should be incremented by before the first iteration.
- singleCounter - If True, when generating two or more different types of credit cards, they will share the same counter. Default is False.
- americanExpress - Enables the generation of American Express credit card numbers. Default is False.
- billMeLater - Enables the generation of Bill Me Later credit card numbers. Default is False.
- carteBlanche - Enables the generation of Carte Blanche credit card numbers. Default is False.
- dinersClub - Enables the generation of Diners Club credit card numbers. Default is False.
- discover - Enables the generation of Discover credit card numbers. Default is False.
- jcb - Enables the generation of JCB credit card numbers. Default is False.
- masterCard - Enables the generation of Master Card credit card numbers. Default is False.
- switchSolo16 - Enables the generation of 16-digit Switch/Solo credit card numbers. Default is False.
- switchSolo18 - Enables the generation of 18-digit Switch/Solo credit card numbers. Default is False.
- switchSolo19 - Enables the generation of 19-digit Switch/Solo credit card numbers. Default is False.
- visa16 - Enables the generation of 16-digit Visa credit card numbers. Default is False.
- visa13 - Enables the generation of 13-digit Switch/Solo credit card numbers. Default is False.
- voyager - Enables the generation of Voyager credit card numbers. Default is False.
Generate Discover and MasterCard Card Numbers
The following configuration will generate both Discover and MasterCard numbers.
- discover = true
- masterCard = true
Sample Output
Discover and MasterCard Numbers