Skip to content

Commit

Permalink
Release 1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Schurter committed Nov 22, 2018
1 parent 8642cf3 commit 15e760e
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 11 deletions.
10 changes: 8 additions & 2 deletions Model/Service/Quote/TransactionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Wallee\Payment\Helper\Data as Helper;
use Wallee\Payment\Model\ApiClient;
use Wallee\Payment\Model\Service\AbstractTransactionService;
use Wallee\Sdk\ApiException;
use Wallee\Sdk\VersioningException;
use Wallee\Sdk\Model\AbstractTransactionPending;
use Wallee\Sdk\Model\AddressCreate;
Expand Down Expand Up @@ -111,8 +112,13 @@ public function getPossiblePaymentMethods(Quote $quote)
if (! array_key_exists($quote->getId(), $this->possiblePaymentMethodCache) ||
$this->possiblePaymentMethodCache[$quote->getId()] == null) {
$transaction = $this->getTransactionByQuote($quote);
$paymentMethods = $this->_apiClient->getService(TransactionApiService::class)->fetchPossiblePaymentMethods(
$transaction->getLinkedSpaceId(), $transaction->getId());
try {
$paymentMethods = $this->_apiClient->getService(TransactionApiService::class)->fetchPossiblePaymentMethods(
$transaction->getLinkedSpaceId(), $transaction->getId());
} catch (ApiException $e) {
$this->possiblePaymentMethodCache[$quote->getId()] = [];
throw $e;
}
$this->updatePaymentMethodConfigurations($paymentMethods);
$this->possiblePaymentMethodCache[$quote->getId()] = $paymentMethods;
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ This repository contains the Magento 2.3 extension that enables to process payme

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-2.3/1.0.20/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/magento-2.3/1.0.21/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/wallee-payment/magento-2.3/blob/1.0.20/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/magento-2.3/blob/1.0.21/LICENSE) for more information.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"type" : "magento2-module",
"version" : "1.0.20",
"version" : "1.0.21",
"require" : {
"php": "~7.1.3||~7.2.0",
"magento/framework" : "^102.0.0",
Expand Down
8 changes: 8 additions & 0 deletions docs/en/assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,14 @@ table td[class*="col-"],table th[class*="col-"] {
font-size: 0.875rem;
}

.table-of-contents > .nav > li > .nav > li > .nav > li > a {
padding-left: 2rem;
}

.table-of-contents > .nav > li > .nav > li > .nav > li > a .item-title {
font-size: 0.75rem;
}

.table-of-contents > .nav > li.active > .nav {
display: block;
}
Expand Down
2 changes: 1 addition & 1 deletion 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-2.3/releases/tag/1.0.20/">
<a href="https://github.com/wallee-payment/magento-2.3/releases/tag/1.0.21/">
Source
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<resource>Wallee_Payment::config</resource>
<group id="information" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Information</label>
<comment><![CDATA[If you need help setting up the wallee extension, check out the <a href="https://plugin-documentation.wallee.com/wallee-payment/magento-2.3/1.0.20/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-2.3/1.0.21/docs/en/documentation.html" target="_blank">documentation</a>.]]></comment>
<field id="version" translate="label" type="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Module Version</label>
</field>
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<default>
<wallee_payment>
<information>
<version>1.0.20</version>
<version>1.0.21</version>
<sdk_version>1.1.9</sdk_version>
</information>
<general>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Wallee_Payment" setup_version="1.0.20">
<module name="Wallee_Payment" setup_version="1.0.21">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down
2 changes: 1 addition & 1 deletion i18n/de_DE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"General","Allgemein"
"Hold Delivery","Lieferung halten"
"ID required","ID erforderlich"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2.3/1.0.20/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-2.3/1.0.20/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-2.3/1.0.21/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-2.3/1.0.21/docs/en/documentation.html"" target=""_blank"">Dokumentation</a> an."
"Inactive","Inaktiv"
"Information","Informationen"
"Invoice","Rechnung"
Expand Down
2 changes: 1 addition & 1 deletion i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"General","General"
"Hold Delivery","Hold Delivery"
"ID required","ID required"
"If you need help setting up the wallee extension, check out the <a href=""https://plugin-documentation.wallee.com/wallee-payment/magento-2.3/1.0.20/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-2.3/1.0.20/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-2.3/1.0.21/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-2.3/1.0.21/docs/en/documentation.html"" target=""_blank"">documentation</a>."
"Inactive","Inactive"
"Information","Information"
"Invoice","Invoice"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ define([
if (validationResult.success) {
this.placeOrder();
} else {
$('html, body').animate({ scrollTop: $('#' + this.getCode()).offset().top - 20 });
for (var i = 0; i < validationResult.errors.length; i++) {
this.messageContainer.addErrorMessage({
message: validationResult.errors[i]
Expand Down

0 comments on commit 15e760e

Please sign in to comment.