How the Luhn check works
Starting from the rightmost digit, every second digit doubles; if the result exceeds nine, subtract nine. Sum all digits. Multiples of ten pass. Mewix ignores spaces and punctuation, then refuses inputs shorter than twelve digits—the message reads “Too short for a card number.”
What this is not
Success text explicitly says format only—not a payment check. There is no contact with card networks, no BIN lookup, and no storage. Real authorisation needs your payment processor; Luhn merely catches typos early in UI validation.
Why twelve digits minimum?
That is the threshold coded in our validator after stripping non-digits. Shorter numeric strings fail before Luhn runs.
Do Amex fifteen-digit numbers work?
Yes, as long as twelve or more digits remain and the Luhn sum mod ten is zero.