You are here

function _valid_card_issue in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_credit/uc_credit.module \_valid_card_issue()

Validates an issue number on a card; returns TRUE or FALSE.

2 calls to _valid_card_issue()
uc_payment_method_credit in payment/uc_credit/uc_credit.module
Callback function for the Credit Card payment method.
uc_payment_method_credit_form in payment/uc_credit/uc_credit.module
Displays the credit card details form on the checkout screen.

File

payment/uc_credit/uc_credit.module, line 1515
Defines the credit card payment method and hooks in payment gateways.

Code

function _valid_card_issue($issue) {
  if (empty($issue) || is_numeric($issue) && $issue > 0) {
    return TRUE;
  }
  return FALSE;
}