function pay_method_gateway::cc_issue_number_required in Pay 6
Same name and namespace in other branches
- 7 includes/handlers/pay_method_gateway.inc \pay_method_gateway::cc_issue_number_required()
2 calls to pay_method_gateway::cc_issue_number_required()
- pay_method_gateway::cc_issue_number_validate in includes/
handlers/ pay_method_gateway.inc - pay_method_gateway::form in includes/
handlers/ pay_method_gateway.inc
File
- includes/
handlers/ pay_method_gateway.inc, line 153 - 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_required($val = NULL) {
$issue_number_cc_types = array(
'switch',
);
// For validation of form submission.
if ($val && in_array($val, $issue_number_cc_types)) {
return TRUE;
}
// For display of form field.
if (!$val) {
foreach ($issue_number_cc_types as $cc_type) {
if ($this->payment_types[$cc_type]) {
return TRUE;
}
}
}
return FALSE;
}