On This Page
Simple Order API
This self-checking scheme (referred to as theLuhn Mod-10 Method) is an international standard for validatingcredit card account numbers.
Check Digit Scheme
Acheck digit is a digit added to a number (either at the end or thebeginning) that validates the authenticity of the number. A simplealgorithm is applied to the other digits of the number which yieldsthe check digit. Check Digit Scheme can be used when an end-user hasentered in a credit card number and you want to validate it beforesending it an authorization.
This self-checking scheme (referredto as the Luhn Mod-10 Method) is an international standard for validatingcard account numbers (ISO 2894/ANSI 4.13). Such account numbers,which cannot exceed 19 digits including the check digit, are assigned, embossedand encoded to include a single check digit in the rightmost position.The check digit is calculated as follows:
Beginningon the right with the digit which immediately precedes the checkdigit and moving toward the left, double every other digit. Afterdoubling each selected digit, if the result is ten or greater, addthe two digits together to arrive at a single-digit result.
Each individual resulting digit (plus those skipped above)are then added together.
This sum is then subtracted from the lowest multiple of tenwhich is equal to or greater than the sum and the single-digit resultis the check digit.
Example
: 15-Digit Account Number 7951-0287-9015-54?