# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- /Users/marcus/Desktop/uc_netbanx_checksum.patch
+++ /Users/marcus/Downloads/uc_netbanx 3/uc_netbanx.module
@@ -147,7 +147,7 @@
   
       $netbanx_fields = array(
         'uc_netbanx_order_id' => $order->order_id,
-        'nbx_payment_amount' => round($order->order_total * variable_get('uc_netbanx_currency_factor', 100)),
+        'nbx_payment_amount' => $order->order_total * variable_get('uc_netbanx_currency_factor', 100),
         'nbx_currency_code' => 'GBP',
         'nbx_merchant_reference' => $order->order_id,
         'nbx_checksum' => $checksum,
@@ -275,7 +275,8 @@
  */
 function _nbx_checksum_from_order($order) {
 
-  return sha1(round($order->order_total * variable_get('uc_netbanx_currency_factor', 100)) . 'GBP' .$order->order_id . variable_get('uc_netbanx_secret_key', 'SECRETKEY'));
+  return sha1(($order->order_total * variable_get('uc_netbanx_currency_factor', 100)) . 'GBP' . ($order_total->order_id) . variable_get('uc_netbanx_secret_key', 'SECRETKEY'));
+
 }
 
 /**
