--- uc_store_credit.module	2012-04-30 20:43:35.000000000 +0400
+++ uc_store_credit.module.new	2012-04-30 20:46:31.000000000 +0400
@@ -293,7 +293,7 @@
     }
 
     // If the attempt to subtract the store credit fails...
-    if (!uc_store_credit_user_subtract($uid, $total)) {
+    if (!uc_store_credit_user_subtract($uid, $total, $arg1)) {
       // Return an error message and get outta here.
       return array(array('pass' => FALSE, 'message' => t('There was a problem processing payment for your order.  Please try again or contact us if the problem persists.')));
     }
@@ -486,16 +486,17 @@
  *   The user whose store credit we're affecting.
  * @param $total
  *   The total amount to subtract from the user's credit.
+ * @param $order
  * @return
  *   TRUE or FALSE indicating the success of the operation.
  */
-function uc_store_credit_user_subtract($uid, $total) {
+function uc_store_credit_user_subtract($uid, $total, $order) {
   // Check to make sure we have a valid handler.
   if (!$function = uc_store_credit_handler()) {
     return FALSE;
   }
 
-  return $function('subtract', $uid, $total);
+  return $function('subtract', $uid, $total, $order);
 }
 
 /**
