Definition
The card number transformer can anonymize an existing email address or completely generate a new one. A card number can be quite complex but we make it easy to generate valid luhn-check card numbers.
By default, the card number transformer generates a random 16 digit card number that is not luhn valid. If you want luhn validation, please set the luhn-check config to true
.
Configurations
Depending on your validations, you may want to configure the output card number. The card number transformer has the following configurations:
Name | Description | Default | Example Input | Example Output |
---|---|---|---|---|
Luhn Check | Generate a card number that can pass luhn validation. | false | N/A | 4117093725369003 |
Examples
Here are some examples of an output card number:
Luhn Check | Example Input | Example Output |
---|---|---|
false | N/A | 3627893345931223 |
true | N/A | 2499253263836374 |