CORE POS - IS4C
The CORE POS front end
Public Member Functions | List of all members
COREPOS\pos\plugins\Paycards\card\CardValidator Class Reference

Public Member Functions

 validNumber ($pan)
 
 validExpiration ($exp)
 
 validateAmount ($conf)
 

Member Function Documentation

COREPOS\pos\plugins\Paycards\card\CardValidator::validExpiration (   $exp)

Validate expiration date

Parameters
$expexpiration 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
$panthe card number
Returns
  • 1 if the number is valid
  • 0 if the number is invalid

The documentation for this class was generated from the following file: