COREPOS\pos\plugins\Paycards\card\CardValidator::validExpiration |
( |
|
$exp | ) |
|
Validate expiration date
- Parameters
-
$exp | expiration formatted MMYY |
- Returns
- 1 if ok
- -1 if the argument is malformed
- -2 if the month is smarch-y
- -3 if the date is in the past
COREPOS\pos\plugins\Paycards\card\CardValidator::validNumber |
( |
|
$pan | ) |
|
Validate number using Luhn's Algorithm
- Parameters
-
- Returns
- 1 if the number is valid
- 0 if the number is invalid
The documentation for this class was generated from the following file:
- pos/is4c-nf/plugins/Paycards/card/CardValidator.php