Skip to content

Commit

Permalink
Merge pull request #168 from paynl/feature/PLUG-3222
Browse files Browse the repository at this point in the history
PLUG-3222 - Fix issue with follow payment method
  • Loading branch information
woutse authored Feb 22, 2024
2 parents 7bcf383 + f0e1953 commit 89f4ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/PayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 89f4ee8

Please sign in to comment.