From 5c52bc085c5f2f08b5ebdcc98e5b9256737bcada Mon Sep 17 00:00:00 2001 From: woutse Date: Mon, 26 Aug 2019 16:27:15 +0200 Subject: [PATCH 1/3] Update total_paid_real field in case of banktransfer. --- paynlpaymentmethods/paynlpaymentmethods.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paynlpaymentmethods/paynlpaymentmethods.php b/paynlpaymentmethods/paynlpaymentmethods.php index 64f4261..fc87fd4 100644 --- a/paynlpaymentmethods/paynlpaymentmethods.php +++ b/paynlpaymentmethods/paynlpaymentmethods.php @@ -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 doning 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; From ca4d57097c43728ef313c0a13bb54942a85a5ba1 Mon Sep 17 00:00:00 2001 From: woutse Date: Mon, 26 Aug 2019 16:33:00 +0200 Subject: [PATCH 2/3] Update total_paid_real field in case of banktransfer. --- paynlpaymentmethods/paynlpaymentmethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paynlpaymentmethods/paynlpaymentmethods.php b/paynlpaymentmethods/paynlpaymentmethods.php index fc87fd4..59a678b 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'; From 855e34cf27bf9ea52ae2928eb6eff3ccdb20f6d2 Mon Sep 17 00:00:00 2001 From: woutse Date: Mon, 26 Aug 2019 16:48:50 +0200 Subject: [PATCH 3/3] Update total_paid_real field in case of banktransfer. --- paynlpaymentmethods/paynlpaymentmethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paynlpaymentmethods/paynlpaymentmethods.php b/paynlpaymentmethods/paynlpaymentmethods.php index 59a678b..ab24896 100644 --- a/paynlpaymentmethods/paynlpaymentmethods.php +++ b/paynlpaymentmethods/paynlpaymentmethods.php @@ -444,7 +444,7 @@ public function processPayment($transactionId, &$message = null) $orderPayment->save(); - # In case of banktransfer the total_paid_real isn't set, we're doning that now. + # 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();