Skip to content

Commit

Permalink
Release 1.0.58
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Schurter committed Feb 5, 2020
1 parent abb9d1d commit 38db3ff
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This repository contains the Magento 1 extension that enables to process payment

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html)

## Supported One Step Checkouts

Expand All @@ -28,4 +28,4 @@ For Magento 1.6.x you need to install the [Magento compatibility module](https:/

## License

Please see the [license file](https://github.com/wallee-payment/magento-1/blob/1.0.57/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/magento-1/blob/1.0.58/LICENSE) for more information.
10 changes: 5 additions & 5 deletions app/code/community/Wallee/Payment/Model/Service/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,18 @@ public function create(Mage_Sales_Model_Order_Payment $payment, Mage_Sales_Model

$refund = new \Wallee\Sdk\Model\RefundCreate();
$refund->setExternalId(uniqid($creditmemo->getOrderId() . '-'));

if ($this->validateReductions($creditmemo, $transaction, $reductions, $baseLineItems)) {
$refund->setReductions($reductions);
} else {
$refund->setAmount($creditmemo->getGrandTotal());
$refund->setAmount($this->roundAmount($creditmemo->getGrandTotal(), $creditmemo->getOrderCurrencyCode()));
}

$refund->setTransaction($transaction);
$refund->setType(\Wallee\Sdk\Model\RefundType::MERCHANT_INITIATED_ONLINE);
return $refund;
}

/**
* Validates whether the given reductions total amount matches the one of the creditmemo.
*
Expand All @@ -140,7 +140,7 @@ protected function validateReductions(Mage_Sales_Model_Order_Creditmemo $creditm
$reductionAmount = $lineItemHelper->getReductionAmount($baseLineItems, $reductions,
$creditmemo->getOrderCurrencyCode());

if ($reductionAmount != $creditmemo->getGrandTotal()) {
if ($this->compareAmounts($reductionAmount, $creditmemo->getGrandTotal(), $creditmemo->getOrderCurrencyCode()) != 0) {
return false;
} else {
return true;
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Wallee/Payment/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<config>
<modules>
<Wallee_Payment>
<version>1.0.57</version>
<version>1.0.58</version>
</Wallee_Payment>
</modules>
<global>
Expand Down Expand Up @@ -357,7 +357,7 @@
<default>
<wallee_payment>
<information>
<version>1.0.57</version>
<version>1.0.58</version>
<sdk_version>2.0.10</sdk_version>
</information>
<general>
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Wallee/Payment/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment><![CDATA[If you need help setting up the wallee extension, check out the <a href="https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html" target="_blank">documentation</a>.]]></comment>
<comment><![CDATA[If you need help setting up the wallee extension, check out the <a href="https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html" target="_blank">documentation</a>.]]></comment>
<fields>
<version translate="label">
<label>Module Version</label>
Expand Down
2 changes: 1 addition & 1 deletion app/locale/de_DE/Wallee_Payment.csv
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"Giftcard (%s)","Geschenkkarte (%s)"
"Giftcard","Geschenkkarte"
"Hold Delivery","Lieferung halten"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Falls Sie Hilfe benötigen beim Einrichten der wallee-Erweiterung, sehen Sie sich die <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html"" target=""_blank"">Dokumentation</a> an."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html"" target=""_blank"">documentation</a>.","Falls Sie Hilfe benötigen beim Einrichten der wallee-Erweiterung, sehen Sie sich die <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html"" target=""_blank"">Dokumentation</a> an."
"Inactive","Inaktiv"
"Information","Informationen"
"Line Items","Positionen"
Expand Down
2 changes: 1 addition & 1 deletion app/locale/en_US/Wallee_Payment.csv
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"Giftcard (%s)","Giftcard (%s)"
"Giftcard","Giftcard"
"Hold Delivery","Hold Delivery"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html"" target=""_blank"">documentation</a>.","If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.57/docs/en/documentation.html"" target=""_blank"">documentation</a>."
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html"" target=""_blank"">documentation</a>.","If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-1/1.0.58/docs/en/documentation.html"" target=""_blank"">documentation</a>."
"Inactive","Inactive"
"Information","Information"
"Line Items","Line Items"
Expand Down
4 changes: 2 additions & 2 deletions docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/magento-1/releases/tag/1.0.57/">
<a href="https://github.com/wallee-payment/magento-1/releases/tag/1.0.58/">
Source
</a>
</li>
Expand Down Expand Up @@ -50,7 +50,7 @@ <h1>
<div class="olist arabic">
<ol class="arabic">
<li>
<p><a href="https://github.com/wallee-payment/magento-1/releases/tag/1.0.57/">Download</a> the extension.</p>
<p><a href="https://github.com/wallee-payment/magento-1/releases/tag/1.0.58/">Download</a> the extension.</p>
</li>
<li>
<p>Extract the files and upload them to the root directory of your store using FTP/SSH.</p>
Expand Down

0 comments on commit 38db3ff

Please sign in to comment.