When you enter a credit card number for one of the default credit card types, the number is automatically validated.

Validation is implemented in codeunit 827. The check that is performed validates the length of the specific credit card number and the modulus 10 algorithm, which is also known as the Luhn algorithm. You can customize codeunit 827 to meet any additional validation requirements.