function pay_method_gateway::cc_issue_number_validate in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_method_gateway.inc \pay_method_gateway::cc_issue_number_validate()
1 call to pay_method_gateway::cc_issue_number_validate()
- pay_method_gateway::pay_method_validate in includes/
handlers/ pay_method_gateway.inc
File
- includes/
handlers/ pay_method_gateway.inc, line 299 - The base class for credit card payment activities.
Class
- pay_method_gateway
- @file The base class for credit card payment activities.
Code
function cc_issue_number_validate() {
if ($this
->cc_issue_number_required($this->cc_type) && (strlen($this->cc_issue_number) != 2 || !is_numeric($this->cc_issue_number))) {
$this->error_message = t('Invalid issue number.');
return FALSE;
}
return TRUE;
}