function pay_method_gateway::cc_issue_number_validate in Pay 7
Same name and namespace in other branches
- 6 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 - @todo Please document this function.
File
- includes/
handlers/ pay_method_gateway.inc, line 337 - 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;
}