Skip to content

Commit

Permalink
pushed from bitbucket
Browse files Browse the repository at this point in the history
  • Loading branch information
1jenkins committed Mar 3, 2021
1 parent 3f92505 commit abaef9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
13 changes: 0 additions & 13 deletions Model/Api/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/).
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": "rapyd/rapydmagento2",
"description": "Rapyd Payments Plugin for Magento",
"type": "magento2-module",
"version": "1.0.1",
"version": "1.0.2",
"license": [
"Apache-2.0"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<system>
<section id="payment">
<group id="rapyd" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Rapyd Payments Settings</label>
<label>Rapyd Payments Settings (v1.0.2)</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
Expand Down

0 comments on commit abaef9f

Please sign in to comment.