Generate credit card and keep original bank
If the input value is a correct Visa, MasterCard or American Express credit card number, this function generates a credit card number from the same company and keeps the prefix
This function applies on String or Long values.
This function requires no extra parameter.
The generated credit card number passes algorithms that detect false credit card numbers.
In the following example, the input value is a valid American Express credit card number. The masked value is also a valid American Express credit card number.
Input value | Example of a masked value |
---|---|
346992550391727 | 348482709815527 |