diff --git a/paynlpaymentmethods/paynlpaymentmethods.php b/paynlpaymentmethods/paynlpaymentmethods.php index 64f4261..ab24896 100644 --- a/paynlpaymentmethods/paynlpaymentmethods.php +++ b/paynlpaymentmethods/paynlpaymentmethods.php @@ -51,7 +51,7 @@ public function __construct() { $this->name = 'paynlpaymentmethods'; $this->tab = 'payments_gateways'; - $this->version = '4.2.4'; + $this->version = '4.2.5'; $this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_); $this->author = 'Pay.nl'; @@ -444,6 +444,12 @@ public function processPayment($transactionId, &$message = null) $orderPayment->save(); + # In case of banktransfer the total_paid_real isn't set, we're doing that now. + if ($order_state == $this->statusPaid && $order->total_paid_real == 0) { + $order->total_paid_real = $orderPayment->amount; + $order->save(); + } + $history = new OrderHistory(); $history->id_order = $order->id;