public function after_extern_process()
 {
     global $temp_orders_id;
     if (isset($_POST['Hash']) && isset($_POST['Uid'])) {
         if ($_POST['Status'] == 'DE') {
             $this->errors[$this->type] = Translate('Uw betaling werd geweigerd.');
         } else {
             if ($_GET['Status'] == 'CA') {
                 $this->errors[$this->type] = Translate('Uw betaling werd geannuleerd.');
             } else {
                 if ($_GET['Status'] == 'EX') {
                     $this->errors[$this->type] = Translate('Er was een technisch probleem, contacteer ons voor meer info.');
                 } else {
                     if ($_GET['Status'] == 'TI') {
                         $this->errors[$this->type] = Translate('Uw sessie is verlopen, probeer a.u.b. opnieuw.');
                     }
                 }
             }
         }
         $_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
         $_POST['checkout_step'] = Checkout::last_active_step();
     }
     return;
 }
示例#2
0
 public function after_extern_process()
 {
     global $temp_orders_id;
     if (isset($_GET['SHASIGN'])) {
         include DIR_WS_CLASSES . 'sha.php';
         $get_params = array();
         foreach ($_GET as $key => $value) {
             if ($key != 'SHASIGN' && $key != 'force_checkout_step' && $key != 'customer_id' && $key != 'osCsid' && trim($value) != '') {
                 $get_params[strtoupper($key)] = $value;
             }
         }
         ksort($get_params);
         $temp_data = Checkout::get_all_data_from_temp_db($temp_orders_id);
         $hash_string = '';
         foreach ($get_params as $key => $value) {
             $hash_string .= strtoupper($key) . '=' . $value . $this->instances[$temp_data[$temp_orders_id]['orders']['payment_method']]['sha_string'];
         }
         $sha = new SHA();
         $hasharray = $sha->hash_string($hash_string);
         $hash = strtoupper($sha->hash_to_string($hasharray));
         if ($_GET['SHASIGN'] != $hash) {
             //wrong ogone parameters
             $this->errors[$temp_data[$temp_orders_id]['orders']['payment_method']] = Translate('Er is iets fout gelopen bij de afhandeling van uw betaling. Contacteer ons voor meer uitleg.');
         }
         $_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
         $_POST['checkout_step'] = Checkout::last_active_step();
     }
     return;
 }
 public function after_extern_process()
 {
     global $temp_orders_id;
     if (isset($_GET['tx'])) {
         $_GET['force_checkout_step'] = Checkout::get_step_for_type($this->type);
         $_POST['checkout_step'] = Checkout::last_active_step();
     }
     return;
 }