|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Check Credit Card DigitCategory : Tips
Credit cards numbers use check digits to guard against mistakes and to check for validity. In the section the credit cards MasterCard, VISA, American Express, and Discover will be considered. All of these cards use the same format for determining and verifying check digits.
Why have a check digit in a credit card number?:
When dealing with credit cards it is important to realize that some have different lengths and have different prefixs.
All of the above credits use (mod 10) to determine a check digit, and in all cases the check digit is the right-most digit in the number. To determine the check digit for a credit card follow the below steps. NOTE: In MasterCard and VISA include the prefix digits in the calculation. In American Express and Discover the prefix digits are omitted from all calculations. NOTE: For the below example we consider a random possible MasterCard number 5368235896831135. Step 1: Starting from the second digit from the right and moving towards the left, multiply every digit by 2. 3*2 = 6 Step 2: Sum the digits from Step 1. 6 + 2 + 1 + 6 + 1 + 8 + 1 + 0 + 4 + 1 + 2 + 1 + 0 = 33 Step 3: Sum all of the digits not originally mutliplied by 2. 3 + 8 + 3 + 8 + 6 + 3 + 1 = 32 Step 4: Sum together the results from Step 2 and Step 3. 33 + 32 = 55 Step 5: Subtract the sum from the next highest multiple of 10. 60 -55 = 5 [check digit] A person can determine if the check digit of a given credit card is valid by repeating Steps 1, 2, 3, 4 above for all digits, including the check digit. The sum, s, obtained in Step 4 should be s = 0(mod 10). In our case 60 = 0 (mod 10). Facebook
<< Back 0 Comment
| 1769 hits | Posted by Callrid at 2008-02-06 14:31:37
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Last Modified
08-November-2011, 23:21:04 pm callrid.com Created 2006-2010 by Anton Ongsono All rights reserved |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||