Plugin Directory

Changeset 2435416


Ignore:
Timestamp:
12/09/2020 12:50:43 PM (5 years ago)
Author:
girosolution
Message:
  1. 4.1.1
Location:
girocheckout/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • girocheckout/trunk/girocheckout.php

    r2413329 r2435416  
    1010 * Plugin Name: GiroCheckout
    1111 * Description: Plugin to integrate the GiroCheckout payment methods into WooCommerce.
    12  * Version:     4.1.0
     12 * Version:     4.1.1
    1313 * Author:      GiroSolution GmbH
    1414 * Author URI:  http://www.girosolution.de
  • girocheckout/trunk/library/GiroCheckout_Utility.php

    r2413329 r2435416  
    1919   */
    2020  public static function getVersion() {
    21     return '4.1.0';
     21    return '4.1.1';
    2222  }
    2323
  • girocheckout/trunk/payments/gc_bluecode.php

    r2413329 r2435416  
    468468        echo $notify->getNotifyResponseStringJson();
    469469        exit;
    470       }
    471       else {
    472         $order->update_status('failed');
     470      } else {
     471        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     472          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     473          $order->update_status('failed');
     474        }
     475
    473476        exit;
    474477      }
  • girocheckout/trunk/payments/gc_creditcard.php

    r2413329 r2435416  
    436436      if ($order->get_status() != 'completed' && $order->get_status() != 'processing' &&
    437437        $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
    438 
    439438        // Checks if the payment was successful and redirects the user
    440439        $order->add_order_note($paymentMsg);
     
    522521      if (($order->get_status() == 'processing' || $order->get_status() == 'completed') &&
    523522        $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
    524 
    525523        $notify->sendOkStatus();
    526524        $notify->setNotifyResponseParam('Result', 'ERROR');
     
    549547        echo $notify->getNotifyResponseStringJson();
    550548        exit;
    551       }
    552       else {
    553         $order->update_status('failed');
     549      } else {
     550        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     551          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     552          $order->update_status('failed');
     553        }
     554
    554555        exit;
    555556      }
  • girocheckout/trunk/payments/gc_directdebit.php

    r2413329 r2435416  
    518518        echo $notify->getNotifyResponseStringJson();
    519519        exit;
    520       }
    521       else {
    522         $order->update_status('failed');
     520      } else {
     521        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     522          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     523          $order->update_status('failed');
     524        }
     525
    523526        exit;
    524527      }
  • girocheckout/trunk/payments/gc_eps.php

    r2413329 r2435416  
    458458        echo $notify->getNotifyResponseStringJson();
    459459        exit;
    460       }
    461       else {
    462         $order->update_status('failed');
     460      } else {
     461        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     462          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     463          $order->update_status('failed');
     464        }
     465
    463466        exit;
    464467      }
  • girocheckout/trunk/payments/gc_giropay.php

    r2413329 r2435416  
    471471        echo $notify->getNotifyResponseStringJson();
    472472        exit;
    473       }
    474       else {
    475         $order->update_status('failed');
     473      } else {
     474        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     475          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     476          $order->update_status('failed');
     477        }
     478
    476479        exit;
    477480      }
  • girocheckout/trunk/payments/gc_ideal.php

    r2413329 r2435416  
    367367      $urlRedirect = $this->get_return_url($order);
    368368      $statusNotificationOrder = GiroCheckout_Utility::readOrderStatus($notify->getResponseParam('gcMerchantTxId'));
    369       error_log("Order Status:".$order->get_status().", notify:".print_r($notify,true));
    370369
    371370      // If the status is initial (1) redirect run first, then set order status to redirect(2)
     
    492491        exit;
    493492      } else {
    494         $order->update_status('failed');
     493        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     494          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     495          $order->update_status('failed');
     496        }
     497
    495498        exit;
    496499      }
  • girocheckout/trunk/payments/gc_maestro.php

    r2413329 r2435416  
    469469        exit;
    470470      } else {
    471         $order->update_status('failed');
     471        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     472          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     473          $order->update_status('failed');
     474        }
     475
    472476        exit;
    473477      }
  • girocheckout/trunk/payments/gc_paydirekt.php

    r2413329 r2435416  
    633633        echo $notify->getNotifyResponseStringJson();
    634634        exit;
    635       }
    636       else {
    637         $order->update_status('failed');
     635      } else {
     636        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     637          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     638          $order->update_status('failed');
     639        }
     640
    638641        exit;
    639642      }
  • girocheckout/trunk/payments/gc_sofortuw.php

    r2413329 r2435416  
    458458        echo $notify->getNotifyResponseStringJson();
    459459        exit;
    460       }
    461       else {
    462         $order->update_status('failed');
     460      } else {
     461        if (($order->get_status() != 'processing' && $order->get_status() != 'completed') &&
     462          $statusNotificationOrder <= GiroCheckout_Utility::getOrderStatusInitial()) {
     463          $order->update_status('failed');
     464        }
     465
    463466        exit;
    464467      }
  • girocheckout/trunk/readme.txt

    r2413329 r2435416  
    5454
    5555== Changelog ==
     56
     57= 4.1.1 =
     58* Fixed a problem where a failed payment could prevent the order from allowing a consecutive successful payment attempt.
    5659
    5760= 4.1.0 =
Note: See TracChangeset for help on using the changeset viewer.