Credit Card Number Generation
You can generate credit card numbers based on the type of the card. You can choose from multiple credit card number formats.
You can select the credit card issuer type that you want to generate, specify the issuer identification number for the card, and the distribution percentage. You can generate test data for the following credit card types: American Express, Discover, JCB, Mastercard, and Visa. If you enter incorrect values for the credit card identification number, the workflow generation fails.
Use a credit card generation rule to generate data with string data type. You can generate formatted values for a credit card. For example, if the target is a Mastercard, you can configure the rule to generate a credit card number with the proper format of a Mastercard. The target credit card number contains numbers and hyphens in the following format:
XXXX-XXXX-XXXX-XXXX
You can generate unique values of credit card numbers. The generated credit card numbers must pass the credit card verification rules. Use Luhn's algorithm to validate the credit card number.
You cannot generate credit card numbers for numeric, date, and binary data types.
The following image shows the credit card generation parameters:
Issuer Identification Number
An issuer identification number contains the starting digits of a credit card number.
The issuer identification number accepts up to six digits. After the valid values, TDM adds any number from 0 to 9. For example, the issuer identification number for a Visa card is 4. So, TDM can generate data such as 4X, 4XX, 4XXX, 4XXXX, 4XXXXX, and so on.
If you do not specify a number, TDM generates data based on the valid issuer identification numbers for the corresponding issuing networks. If you provide a valid value, TDM generates data based on the issuer identification number. If you provide a value that is not valid, the workflow fails to run.
The following table shows the valid issuer identification numbers for different issuing networks:
Issuing Network | Issuer Identification Number |
---|
American Express | 34 and 37 |
Discover | 6011, 622126 to 622925, 644-649, and 65 |
JCB | 3528-3589 |
Mastercard | 51-55 |
Visa | 4 |
Credit Card Generation Parameters
The following table describes the parameters that you can configure for credit card generation:
Parameter | Description |
---|
Issuing Network | Required. The type of credit card issuing network. You can choose to generate the following type of credit cards: American Express, Discover, JCB, Mastercard, and Visa. |
Issuer Identification Number | Optional. The starting valid numbers for the credit card type. You can enter up to six digits. You must enter a valid value for each credit card type. If the issuer identification number is not valid for the selected credit card type, the workflow generation fails. If you leave the field blank, TDM generates data based on the valid issuer identification numbers for the corresponding issuing networks. |
Distribution % | The percentage of rows that you want to generate for the specified credit card type. The sum of the distribution of the values have to be 100%. You can enter a decimal value in the distribution percent field. |
Generate Formatted Values | Generates formatted values for the credit card type. For example, you can generate 16 digits for a Visa card that contains every four digits separated by hyphens. |
Generate Unique Values | Generates unique data values. |
Null Values | A list of global rules or default rule that are available for the string data type. A null value is a value that a default rule or a global rule generates in the target columns for the string data type. |
Invalid Values | A list of global rules or default rule that you can select for the string data type. Any value that is less than the minimum length or more than maximum length for a specified range is not valid. A string that does not match the specified pattern is not valid. |