# 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.
--- /Volumes/Data/Web Sites/Drupal7/sites/all/modules/commerce_atos/commerce_atos.callbacks.inc
+++ /Volumes/Data/Downloads/commerce_atos/commerce_atos.callbacks.inc
@@ -93,15 +93,15 @@
     '#type' => 'select',
     '#title' => t('Bank'),
     '#options' => array(
-      'etransactions' => t('Crédit Agricole (e-transactions)'),
-      'sogenactif' => t('Société Générale (Sogenactif)'),
+      'etransactions' => t('Cr√©dit Agricole (e-transactions)'),
+      'sogenactif' => t('Soci√©t√© G√©n√©rale (Sogenactif)'),
       'cyberplus' => t('Banque Populaire (Cyberplus)'),
       'mercanet' => t('BNP Paribas (Mercanet)'),
       'scelliusnet' => t('La Poste (Scellius)'),
       'sherlocks' => t('LCL (Sherlocks)'),
-      'webaffaires' => t('Crédit du Nord (Webaffaires)'),
+      'webaffaires' => t('Cr√©dit du Nord (Webaffaires)'),
       'elysnet' => t('HSBC (Elys Net)'),
-      'citelis' => t('Crédit Mutuel de Bretagne (Citélis)'),
+      'citelis' => t('Cr√©dit Mutuel de Bretagne (Cit√©lis)'),
       'sips' => t('Atos Worldline (Sips)'),
     ),
     '#default_value' => $settings['commerce_atos_bank'],
@@ -461,22 +461,15 @@
  * Payment method callback validation.
  */
 function commerce_atos_redirect_form_validate($order, $payment_method) {
-  if (!isset($_POST['DATA']) && !isset($_GET['DATA'])) {
+  if (!isset($_POST['DATA'])) {
     watchdog('commerce_atos', 'Response attempted without any POST data.', array(), WATCHDOG_WARNING);
     return FALSE;
   }
-
-  $data = isset($_POST['DATA']) ? $_POST['DATA'] : '';
-  
-  if (empty($data)) {
-    $data = $_GET['DATA'];
-  }
-
   // Retrieve the binaries path.
   $bin_path = $payment_method['settings']['commerce_atos_bin_path'];
   // Retrieve the request params.
   $request = &$order->data['atos']['request'];
-  $response = commerce_atos_parse_response($data, $bin_path . '/response', $request['pathfile']);
+  $response = commerce_atos_parse_response($_POST['DATA'], $bin_path . '/response', $request['pathfile']);
   // Go back to the previous page if the response code isn't correct.
   if (!isset($response['code']) || ($response['code'] != 0)) {
     watchdog('commerce_atos', 'Response error: %error', array('%error' => $response['error']), WATCHDOG_ERROR);

--- /Volumes/Data/Web Sites/Drupal7/sites/all/modules/commerce_atos/commerce_atos.module
+++ /Volumes/Data/Downloads/commerce_atos/commerce_atos.module
@@ -200,21 +200,15 @@
  * Autoresponse menu callback.
  */
 function commerce_atos_payment_autoresponse($order = NULL, $payment_method = NULL) {
-  if (!isset($_POST['DATA']) && !isset($_GET)) {
+  if (!isset($_POST['DATA'])) {
     watchdog('commerce_atos', 'Response attempted without any POST data.', array(), WATCHDOG_WARNING);
-    return FALSE;
+    return;
   }
-
-  $data = isset($_POST['DATA']) ? $_POST['DATA'] : '';
-  if (empty($data)) {
-    $data = $_GET['DATA'];
-  }
-
   // Retrieve the path of the binaries and the param directory.
   $bin_path = $payment_method['settings']['commerce_atos_bin_path'];
   // Retrieve the request stored in the object.
   $request = &$order->data['atos']['request'];
-  $response = commerce_atos_parse_response($data, $bin_path . '/response', $request['pathfile']);
+  $response = commerce_atos_parse_response($_POST['DATA'], $bin_path . '/response', $request['pathfile']);
   if (!isset($response['code']) || ($response['code'] != 0)) {
     watchdog('commerce_atos', 'Response error: %error', array('%error' => $response['error']), WATCHDOG_ERROR);
     commerce_payment_redirect_pane_previous_page($order);
@@ -293,7 +287,7 @@
   $names = array(
     'amount',
     'transaction_id',
-    //'customer_email',
+    'customer_email',
     'customer_id',
     'currency_code',
     'merchant_country',
