Credit card validation class
This class implements Mod 10 algorithm to validate a credit card number. It also checks if a credit card number prefix and an exparation date are correct.
Example of usage:
Credit card expiration month
1-12 or 0 if not set. Read only. Use constructor to set the value.
Credit card expiration year
YYYY or 0 if not set. Read only. Use constructor to set the value.
Credit card holder's name
Read only. Use constructor to set the value.
Credit card number
Read only. Use constructor to set the value.
Credit card type
CCV_MASTER_CARD - 0, CCV_VISA - 1, CCV_AMERICAN_EXPRESS - 2, CCV_DINERS_CLUB - 3, CCV_DISCOVER - 4, CCV_JCB - 5 or -1 if no card. Read only. Use constructor to set the value.
Constructor
Validate credit card information
Documentation generated by phpDocumentor