Index: uc_roboxchange.module
===================================================================
--- uc_roboxchange.module	(revision 18)
+++ uc_roboxchange.module	(working copy)
@@ -69,9 +69,9 @@
 
 
 function uc_roboxchange_done_payment() {
-  $order_id           = $GLOBALS['_POST']['inv_id'];
-  $amount             = $GLOBALS['_POST']['out_summ'];
-  $hash               = drupal_strtoupper($GLOBALS['_POST']['crc']);
+   $order_id           = $GLOBALS['_POST']['InvId'];
+   $amount             = $GLOBALS['_POST']['OutSum'];
+   $hash               = drupal_strtoupper($GLOBALS['_POST']['SignatureValue']);
 
   $mps2 = variable_get('uc_roboxchange_mps2', '');
   $crc=strtoupper(md5($amount .':'. $order_id .':'. $mps2));
@@ -101,12 +101,14 @@
       uc_payment_enter($order_id, 'roboxchange', $amount, $order->uid, NULL, $description);
       uc_cart_complete_sale($order);
       uc_order_comment_save($order_id, 0, t('A payment has been accepted.'), 'admin');
-      return "OK". $order_id;
-  }
-  else {
+      print "OK". $order_id;
+      exit;
+    }
+    else {
       uc_order_comment_save($order_id, 0, $res, 'admin');
       uc_order_update_status($order_id, 'canceled');
-      return $res;
+      print $res;
+      exit;
   }
 }
 
@@ -194,11 +196,11 @@
     db_query("INSERT INTO {uc_roboxchange_transaction} (txnid, description) VALUES (%d, '%s')", $order->order_id, $description);
   }
   $mrh=variable_get('uc_roboxchange_mrh', '');
-  $form['mrh'] = array(
+  $form['MrchLogin'] = array(
     '#type' => 'hidden',
     '#value' => $mrh,
   );
-  $form['inv_id'] = array(
+  $form['InvId'] = array(
     '#type' => 'hidden',
     '#value' => $order->order_id,
   );
@@ -206,17 +208,17 @@
   $sitename=variable_get('site_name', 'Drupal');
   $desc = t('Purchase from site !sitename. Transaction !ID.', array('!sitename' => $sitename, '!ID' => $order->order_id));
 
-  $form['inv_desc'] = array(
+  $form['Desc'] = array(
     '#type' => 'hidden',
     '#default_value' => $desc,
   );
 
-  $form['out_summ'] = array(
+  $form['OutSum'] = array(
     '#type' => 'hidden',
     '#value' => $amount,
   );
-  $crc=md5($mrh .':'. $amount .':'. $order->order_id .':'. variable_get('uc_roboxchange_mps1', ''));
-  $form['crc'] = array(
+  $crc = md5($mrh .':'. $amount .':'. $order->order_id .':'. variable_get('uc_roboxchange_mps1', ''));
+  $form['SignatureValue'] = array(
     '#type' => 'hidden',
     '#value' => $crc,
   );
