From abaef9fef4cbaa25487b231e648058f446fdf41b Mon Sep 17 00:00:00 2001 From: "devops-user@rapyd.net" Date: Wed, 3 Mar 2021 12:19:19 +0000 Subject: [PATCH] pushed from bitbucket --- Model/Api/Webhook.php | 13 ------------- README.md | 4 ++-- composer.json | 2 +- etc/adminhtml/system.xml | 2 +- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Model/Api/Webhook.php b/Model/Api/Webhook.php index 919b777..795be54 100644 --- a/Model/Api/Webhook.php +++ b/Model/Api/Webhook.php @@ -132,11 +132,6 @@ public function addTransactionToOrder($order, $payment_token, $isClosed, $messag ); $trn = $payment->addTransaction(\Magento\Sales\Model\Order\Payment\Transaction::TYPE_ORDER, null, true);//////TYPE_PAYMENT $trn->setIsClosed($isClosed)->save(); - $payment->addTransactionCommentsToOrder( - $trn, - $message - ); - $payment->setParentTransactionId(null); $payment->save(); } catch (\Exception $e) { @@ -155,10 +150,6 @@ public function addRefundTransactionToOrder($order, $refund_token, $isClosed, $m ); $trn = $payment->addTransaction(\Magento\Sales\Model\Order\Payment\Transaction::TYPE_REFUND, null, true);//////TYPE_PAYMENT $trn->setIsClosed($isClosed)->save(); - $payment->addTransactionCommentsToOrder( - $trn, - $message - ); $payment->setAmountRefunded($amount); $payment->setParentTransactionId(null); @@ -182,10 +173,6 @@ public function updateTransaction($order, $transactionId, $message) $payment->setAdditionalInformation( [\Magento\Sales\Model\Order\Payment\Transaction::RAW_DETAILS => [$message]] ); - $payment->addTransactionCommentsToOrder( - $transaction, - $message - ); $transaction->setIsClosed(1); $transaction->save(); $payment->save(); diff --git a/README.md b/README.md index 45d4731..c4545b1 100755 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ See Rapyd Docs for [configuration](https://docs.rapyd.net/docs/rapyd-payments-pl ## Documentation & API Support -See [Rapyd Docs](https://docs.rapyd.net/docs/rapyd-payments-plugin-for-magento) for details. +See [Rapyd Docs](https://docs.rapyd.net/docs/rapyd-payments-plugin-for-magento) for details ## License @@ -29,4 +29,4 @@ Apache-2.0 see LICENSE ## Technical Support -For technical support please contact [Rapyd Support](https://support.rapyd.net/) +For technical support please contact [Rapyd Support](https://support.rapyd.net/). diff --git a/composer.json b/composer.json index e91dabd..0bb6299 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "rapyd/rapydmagento2", "description": "Rapyd Payments Plugin for Magento", "type": "magento2-module", - "version": "1.0.1", + "version": "1.0.2", "license": [ "Apache-2.0" ], diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index dbf4065..9f89243 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -3,7 +3,7 @@
- + Magento\Config\Model\Config\Source\Yesno