Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit fff6b9d

Browse files
committed
Release 1.0.19
1 parent 825ed7e commit fff6b9d

File tree

5 files changed

+48
-18
lines changed

5 files changed

+48
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ This repository contains the OpenCart wallee payment module that enables the sh
1111

1212
## Documentation
1313

14-
* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.0/1.0.18/docs/en/documentation.html)
14+
* [English](https://plugin-documentation.wallee.com/wallee-payment/opencart-2.0/1.0.19/docs/en/documentation.html)
1515

1616
## License
1717

18-
Please see the [license file](https://github.com/wallee-payment/opencart-2.0/blob/1.0.18/LICENSE) for more information.
18+
Please see the [license file](https://github.com/wallee-payment/opencart-2.0/blob/1.0.19/LICENSE) for more information.

docs/en/documentation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>Documentation</h2> </div>
2121
</a>
2222
</li>
2323
<li>
24-
<a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.18/">
24+
<a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.19/">
2525
Source
2626
</a>
2727
</li>
@@ -48,7 +48,7 @@ <h1>
4848
<div class="olist arabic">
4949
<ol class="arabic">
5050
<li>
51-
<p><a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.18/">Download</a> the extension.</p>
51+
<p><a href="https://github.com/wallee-payment/opencart-2.0/releases/tag/1.0.19/">Download</a> the extension.</p>
5252
</li>
5353
<li>
5454
<p>Extract the files and upload the content of the <code>Upload</code> directory into the root directory of your store using FTP/SSH.</p>

upload/admin/model/extension/wallee/dynamic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function createLanguageFiles(array $configuration, $type){
119119

120120
$title = array_values($configuration['title'])[0];
121121
if (isset($configuration['title'][$restLang->getIetfCode()])) {
122-
$title = \Wallee\Provider\Language::instance($this->registry)->find($code);
122+
$title = $configuration['title'][$restLang->getIetfCode()];
123123
}
124124
$target = str_replace('#code#', WalleeVersionHelper::extractLanguageDirectory($language), $target_base);
125125

upload/catalog/view/theme/journal2/template/payment/wallee/iframe.tpl

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1+
<style>
2+
.panel-heading {
3+
background-color: initial;
4+
}
5+
6+
.route-checkout-checkout .panel-heading:hover {
7+
background-color: initial;
8+
}
9+
10+
.wallee-container {
11+
padding: 15px;
12+
}
13+
14+
#wallee-iframe-spinner {
15+
display: none;
16+
margin: auto;
17+
}
18+
</style>
119
<div class="panel panel-default">
220
<div class="panel-heading">
321
<h4><?php echo $text_payment_title; ?></h4>
422
<span><?php echo $text_further_details; ?></span>
523
</div>
6-
<div style="padding: 15px;">
24+
<div class="wallee-container">
725
<div id="wallee-iframe-spinner" class="text-center">
826
<i style="font-size: 12em;" class='fa fa-spinner fa-spin '></i>
927
</div>
@@ -21,6 +39,10 @@
2139
<script type="text/javascript" src="<?php echo $external_js; ?>"></script>
2240
<script type="text/javascript" src="<?php echo $opencart_js; ?>"></script>
2341
<script type="text/javascript">
42+
$('#journal-checkout-confirm-button').attr('disabled', 'disabled');
43+
if(typeof Window.walleeTimeout !== 'undefined') {
44+
clearTimeout(Window.walleeTimeout);
45+
}
2446
function initAddressUpdates() {
2547
if(typeof window.addressUpdateEventsSet === 'undefined') {
2648
window.addressUpdateEventsSet = true;
@@ -57,18 +79,26 @@
5779
registerAddressUpdates('shipping');
5880
}
5981
}
60-
6182
function initWalleeIframe(){
62-
if(typeof Wallee === 'undefined') {
63-
Window.loadWalleeTimeout = setTimeout(initWalleeIframe, 500);
64-
} else {
65-
Wallee.init('<?php echo $configuration_id; ?>');
66-
initAddressUpdates();
67-
}
83+
jQuery('#wallee-iframe-spinner').css("display", "block");
84+
if(typeof jQuery === 'undefined' || typeof Wallee === 'undefined') {
85+
Window.walleeTimeout = setTimeout(initWalleeIframe, 500);
86+
} else {
87+
Wallee.init('<?php echo $configuration_id; ?>');
88+
initAddressUpdates();
89+
}
6890
}
69-
if(typeof Window.loadWalleeTimeout !== 'undefined') {
70-
clearTimeout(Window.loadWalleeTimeout);
91+
var checked = $('[data-wallee-original-checked=true]').val();
92+
if(checked && checked.startsWith('wallee_')) {
93+
if (typeof Window.loadCounter === 'undefined') {
94+
Window.loadCounter = 1;
95+
} else if (Window.loadCounter == 1) {
96+
Window.loadCounter++;
97+
} else if (Window.loadCounter == 2) {
98+
jQuery().ready(initWalleeIframe);
99+
}
100+
} else {
101+
jQuery().ready(initWalleeIframe);
71102
}
72-
jQuery().ready(initWalleeIframe);
73103
</script>
74-
</div>
104+
</div>

upload/system/library/wallee/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Autoload function.
55
*
6-
* Includes the plugin classes as well as wallee sdk classes.
6+
* Includes the plugin classes as well as Wallee sdk classes.
77
*
88
* After registering this autoload function with SPL, the following line
99
* would cause the function to attempt to load the \Wallee\Sdk\Baz\Qux class

0 commit comments

Comments
 (0)