--- ec_authorize_net.module.gordon.php	2009-09-16 23:22:02.000000000 -0400
+++ ec_authorize_net.module.forpatch.php	2009-12-09 14:15:52.000000000 -0500
@@ -34,6 +34,7 @@ function ec_authorize_net_receipt_info()
       'module' => array('ec_authorize_net'),
       'allow_payments' => TRUE,
       'allow_admin_payments' => TRUE,
+      'allow_recurring' => TRUE,
       'currencies_supported' => array('USD'),
     ),
   );
@@ -102,6 +103,9 @@ function ec_authorize_net_receipt_proces
     $request['x_ship_to_country'] = drupal_strtoupper($saddress['country']);
   }
 
+  global $user;
+  $request['x_cust_id'] = $user->uid;
+  $request['x_email'] = $user->mail;
 
   $headers = array(
     'Content-Type' => 'application/x-www-form-urlencoded',
@@ -125,6 +129,12 @@ function ec_authorize_net_receipt_proces
       $receipt->response_text = $response[3];
       form_set_error('', $response[3]);
       break;
+
+    default:
+      $receipt->status = RECEIPT_STATUS_FAILED;
+      $receipt->response_text = "Unknown failure.";
+      form_set_error('', "Unknown failure - please contact support");
+      break;
   }
   ec_receipt_save($receipt);
 
