### Eclipse Workspace Patch 1.0
#P uc_ogone
Index: uc_ogone_payment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_ogone/uc_ogone_payment.module,v
retrieving revision 1.6.2.10
diff -u -r1.6.2.10 uc_ogone_payment.module
--- uc_ogone_payment.module	5 Feb 2011 07:21:03 -0000	1.6.2.10
+++ uc_ogone_payment.module	10 Feb 2011 00:34:13 -0000
@@ -454,6 +454,12 @@
     //Debug
     //drupal_set_message('cartid:'.uc_cart_get_id().' ogone order id:'.$_SESSION['ogone_order_id']);
 
+    $order = uc_order_load($_SESSION['ogone_order_id']);
+    // We need to get more information from Ogone. Currency, Amount etc.  
+    $comment = t('Ogone transaction : @txn_id', array('@txn_id' => $_SESSION['ogone_order_id']));
+    uc_payment_enter($order->order_id, 'ogone_payment', $order->order_total, $order->uid, NULL, $comment);
+    uc_cart_complete_sale($order);
+    
     // Ensure the cart we're looking at is the one that payment was attempted for.
     $_SESSION['cart_order'] = $_SESSION['ogone_order_id'];
     unset($_SESSION['ogone_order_id']);
