? 642474.patch
? uc_authorizenet/.uc_authorizenet.module.swo
? uc_credit/.test_gateway.module.swp
? uc_credit/.uc_credit.module.swp
? uc_credit/images/laser.gif
Index: uc_credit/uc_credit.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/payment/uc_credit/uc_credit.module,v
retrieving revision 1.5.2.19
diff -u -p -r1.5.2.19 uc_credit.module
--- uc_credit/uc_credit.module	20 Oct 2009 20:58:08 -0000	1.5.2.19
+++ uc_credit/uc_credit.module	25 Nov 2009 13:59:23 -0000
@@ -373,7 +373,7 @@ function uc_credit_payment_method() {
 
   $path = base_path() . drupal_get_path('module', 'uc_credit');
   $title = t('Credit card:');
-  $cc_types = array('visa', 'mastercard', 'discover', 'amex');
+  $cc_types = array('visa', 'mastercard', 'discover', 'amex', 'laser');
   foreach ($cc_types as $type) {
     if (variable_get('uc_credit_'. $type, TRUE)) {
       $title .= ' <img src="'. $path .'/images/'. $type .'.gif" style="position: relative; top: 5px;">';
@@ -819,6 +819,11 @@ function uc_payment_method_credit($op, &
         '#title' => t('American Express'),
         '#default_value' => variable_get('uc_credit_amex', TRUE),
       );
+      $form['cc_types']['uc_credit_laser'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Laser'),
+        '#default_value' => variable_get('uc_credit_laser', TRUE),
+      );
 
       // Form elements that deal with credit card messages to customers.
       $form['cc_messages'] = array(
@@ -1264,6 +1269,9 @@ function _valid_cvv($cvv) {
 
   // Fail validation if it's non-numeric or an incorrect length.
   if (!is_numeric($cvv) || (count($digits) > 0 && !in_array(strlen($cvv), $digits))) {
+    if (variable_get('uc_credit_laser', TRUE)) {
+      return TRUE;
+    }
     return FALSE;
   }
 
@@ -1279,7 +1287,7 @@ function _valid_card_number($number) {
   if (($id == 3 && !variable_get('uc_credit_amex', TRUE)) ||
       ($id == 4 && !variable_get('uc_credit_visa', TRUE)) ||
       ($id == 5 && !variable_get('uc_credit_mastercard', TRUE)) ||
-      ($id == 6 && !variable_get('uc_credit_discover', TRUE)) ||
+      ($id == 6 && !variable_get('uc_credit_discover', TRUE) && !variable_get('uc_laser',TRUE)) ||
       !ctype_digit($number)) {
     return FALSE;
   }
