From 6845fb26b13892710ac1a3b1095b2a98ccbafd3b Mon Sep 17 00:00:00 2001 From: Anne Date: Thu, 22 Feb 2024 17:04:03 +0100 Subject: [PATCH 1/2] Fix issue with follow payment method --- Model/PayPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/PayPayment.php b/Model/PayPayment.php index 3a1f773a..574e01c6 100644 --- a/Model/PayPayment.php +++ b/Model/PayPayment.php @@ -261,7 +261,7 @@ public function processPaidOrder(PayTransaction $transaction, Order $order, $pay if ($this->config->getFollowPaymentMethod() && !empty($paymentProfileId)) { $transactionMethod = $this->config->getPaymentMethod($paymentProfileId); - if ($transactionMethod['code'] !== $paymentMethod) { + if (!empty($transactionMethod['code']) && $transactionMethod['code'] !== $paymentMethod) { $payment->setMethod($transactionMethod['code']); $paymentMethodObj = $this->config->getPaymentMethodByCode($paymentMethod); $order->addStatusHistoryComment(__('PAY.: Payment method changed from %1 to %2', ($paymentMethodObj['title'] ?? ''), ($transactionMethod['title'] ?? '')))->save(); From f0e1953cf85104e4e42ac43471c06e8b56210fcd Mon Sep 17 00:00:00 2001 From: woutse Date: Thu, 22 Feb 2024 17:13:32 +0100 Subject: [PATCH 2/2] Bumped version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e6d6068b..d3b4c497 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "paynl/magento2-plugin", "description": "PAY. Payment methods for Magento2", "type": "magento2-module", - "version": "3.11.1", + "version": "3.11.2", "require": { "magento/module-sales": "^102.0.0 || ^103.0.0", "magento/module-payment": "^100.3.0",