function _uc_credit_valid_card_issue in Ubercart 7.3
Validates an issue number on a card; returns TRUE or FALSE.
Parameters
string $issue: The issue number.
Return value
bool TRUE if the issue number if valid, FALSE otherwise.
2 calls to _uc_credit_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 934 - Defines the credit card payment method and hooks in payment gateways.
Code
function _uc_credit_valid_card_issue($issue) {
if (empty($issue) || is_numeric($issue) && $issue > 0) {
return TRUE;
}
return FALSE;
}