function pay_method_gateway::cc_expiration_validate in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_method_gateway.inc \pay_method_gateway::cc_expiration_validate()
1 call to pay_method_gateway::cc_expiration_validate()
- pay_method_gateway::pay_method_validate in includes/
handlers/ pay_method_gateway.inc
File
- includes/
handlers/ pay_method_gateway.inc, line 289 - The base class for credit card payment activities.
Class
- pay_method_gateway
- @file The base class for credit card payment activities.
Code
function cc_expiration_validate() {
if ($this->cc_exp_year == date('y')) {
if ($this->cc_exp_month < date('m')) {
$this->error_message = t('The credit card appears to be expired.');
return FALSE;
}
}
return TRUE;
}