|
credit-card.check-number
|
| |
|
description
Checks for valid credit card number using Luhn algorithm
(see http://www.merriampark.com/anatomycc.htm).
privilege-required
anyone
tx-support
false
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| expire-date |
string |
none |
true |
Expire date (format MM/yy). |
| number |
string |
none |
true |
Credit card number (non numeric char are automatically removed). |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Invalid credit card number |
| 2 |
Expiration date reached |
|
| |
|
RESULT
|
|
|
name
|
description
|
| response |
'true' if the credit card is valid, otherwise, the error variable is set. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
Check credit card number and set its validity in 'isValid' variable.
<nvd:command name="credit-card.check-number" number="4408 0412 3456 7890" expire-date="12/04">
<nvd:result name="response" variable="isValid" />
</nvd:command>
|
|