--- uc_recurring.uc_authorizenet.inc	Thu Jan 21 15:43:54 2010
+++ uc_recurring.uc_authorizenet.inc	Thu Jan 21 15:43:45 2010
@@ -74,6 +74,7 @@
  *   TRUE if renewal succeeded
  */
 function uc_recurring_authorizenet_cim_renew($order, &$fee) {
+  global $user;
   if (!empty($order->data['cc_txns']['references'])) {
     $data = array(
       'txn_type' => UC_CREDIT_REFERENCE_TXN,
@@ -83,9 +84,15 @@
 
     if ($result['success'] == TRUE) {
       uc_payment_enter($order->order_id, $order->payment_method, $order->order_total, $fee->uid, $result['data'], $result['comment']);
+      uc_order_comment_save($order->order_id, $user->uid, $result['message']);
       return TRUE;
     }
+    else {
+      uc_order_comment_save($order->order_id, $result['uid'], $result['comment']);
+      return FALSE;
+    }
   }
+  uc_order_comment_save($order->order_id, $user->uid, t('Error: No credit card reference found for order.'));
   return FALSE;
 }
 
