I'm developing a Gateway Payment module for Ubercart. It is necessary to validate that the User does not digit three ceros -000- (bank policy) before the order review form. I've seen that Ubercart does the CCV's validation in the uc_credit.module
if (variable_get('uc_credit_cvv_enabled', TRUE) && !_valid_cvv($cc_data['cc_cvv'])) {
if (!$silent) {
drupal_set_message(t('You have entered an invalid CVV number.'), 'error');
}
$return = FALSE;
}
How could I add my validation without hacking Ubercart modules.
Thanks in advance.