function commerce_payment_validate_credit_card_issue in Commerce Core 7
Validates that an issue number is numeric if present.
1 call to commerce_payment_validate_credit_card_issue()
- commerce_payment_credit_card_validate in modules/
payment/ includes/ commerce_payment.credit_card.inc - Validates a set of credit card details entered via the credit card form.
File
- modules/
payment/ includes/ commerce_payment.credit_card.inc, line 368 - Credit-card helper functions for Drupal commerce.
Code
function commerce_payment_validate_credit_card_issue($issue) {
if (empty($issue) || is_numeric($issue) && $issue > 0) {
return TRUE;
}
return FALSE;
}