Simple PHP class for validating a credit/debit card before passing to a payment gateway