Skip to main content
System
Card Number
string
code reference

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:

NameDescriptionDefaultExample InputExample Output
Luhn CheckGenerate a card number that can pass luhn validation.falseN/A4117093725369003

Examples

Here are some examples of an output card number:

Luhn CheckExample InputExample Output
falseN/A3627893345931223
trueN/A2499253263836374