? nusoap
Index: README.txt
===================================================================
RCS file: /cvs/drupal/contributions/modules/uc_eway/README.txt,v
retrieving revision 1.2.2.1
diff -u -p -r1.2.2.1 README.txt
--- README.txt	18 Jun 2009 07:32:41 -0000	1.2.2.1
+++ README.txt	14 Oct 2009 03:25:26 -0000
@@ -16,6 +16,12 @@ Installation
 
 - Create a folder in your modules directory called uc_eway and put the module's files in this directory
 
+- Use of recurring billing (ReBill) requires the NuSOAP library available at http://sourceforge.net/projects/nusoap/
+  - Install the NuSOAP library to the module's directory so that the directory structure looks like this:
+    uc_eway/nusoap
+    uc_eway/nusoap/lib
+    uc_eway/nusoap/lib/nusoap.php
+
 - Enable the module on the Modules admin page:
       Administer > Site building > Modules
 
Index: uc_eway.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/uc_eway/uc_eway.module,v
retrieving revision 1.2.2.2.2.2
diff -u -p -r1.2.2.2.2.2 uc_eway.module
--- uc_eway.module	6 Jul 2009 01:48:37 -0000	1.2.2.2.2.2
+++ uc_eway.module	14 Oct 2009 03:25:26 -0000
@@ -20,6 +20,7 @@ define('UC_EWAY_LOGO_DEFAULT', 1);
 define('UC_EWAY_CHANGE_ORDER_STATUS_DEFAULT', 1);
 define('UC_EWAY_TEST_MODE_DEFAULT', 0);
 define('UC_EWAY_TEST_APPROVE_ANYWAY_DEFAULT', 0);
+define('UC_EWAY_SHOW_FAIL_MESSAGE_DEFAULT', 1);
 
 // Define some variable_set defaults for block display
 define('UC_EWAY_BLOCK_POWERED_BY_SIZE_DEFAULT', 'large');
@@ -169,6 +170,14 @@ function uc_eway_settings_form() {
     ),
     '#default_value' => variable_get('uc_eway_change_order_status', UC_EWAY_CHANGE_ORDER_STATUS_DEFAULT),
   );
+  
+  $form['eway_settings']['uc_eway_show_fail_message'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Show gateway\'s response message on transaction fail.'),
+    '#description' => t('Systems such as ubercart will show a friendly transaction failed message and may not require an additional message.'),
+    '#default_value' => variable_get('uc_eway_show_fail_message', UC_EWAY_SHOW_FAIL_MESSAGE_DEFAULT),
+  );
+
   $form['eway_settings']['uc_eway_logo'] = array(
     '#type' => 'checkbox',
     '#title' => t('Display eWay Logo?'),
@@ -308,7 +317,9 @@ function uc_eway_charge($order_id, $amou
       if (variable_get('uc_eway_test_approve_anyway', UC_EWAY_TEST_APPROVE_ANYWAY) && variable_get('uc_eway_test_mode', UC_EWAY_TEST_MODE)) {
         $result['success'] = TRUE;
       }
-      drupal_set_message($result['message'],'error');
+      if (variable_get('uc_eway_show_fail_message', UC_EWAY_SHOW_FAIL_MESSAGE_DEFAULT)) {
+        drupal_set_message($result['message'],'error');
+      }
       uc_order_comment_save($order_id,null,$result['comment'],'admin');
       break;
     case 'true':
