Credit Card Validator will also provide a determined card type (using credit-card-type).
This is useful for scenarios in which you wish to render an accompanying payment method icon (Visa, Master Card, etc.).
The check digit (x) is obtained by computing the sum of the non-check digits then computing 9 times that value modulo 10 (in equation form, ((67 × 9) mod 10)).
In algorithm form: This makes the full account number read 79927398713.
Most credit cards and many government identification numbers use the algorithm as a simple method of distinguishing valid numbers from mistyped or otherwise incorrect numbers.
The sum of all the digits in the third row is 67 x.
The calculation to compare a credit card number against its check sum is known as the Luhn algorithm.