|
| Miva Order v1.x
| (c) 1997, 1998, 1999, 2000, 2001 Miva Corporation
|
| 2629 Ariane Drive
| San Diego, CA 92117
| 619-490-2570
| sales@miva.com
|
| $Source: /home/cvs/order/Order/payment-mod10.mv,v $
|
| Credit Card Payment with Simple Validation
|
Miva Order Administration: Credit Card Payment With Simple Validation
Credit Card Payment With Simple Validation
/
/
|
| Strip spaces and dashes from the credit card number.
| If after this it contains any non-numeric characters,
| then it's invalid.
|
|
| Add all the digits together. We start at the end
| and proceed towards the front. Odd-numbered positions
| are multiplied by two
|
|
| The result must be evenly dividable by 10
|