Skip to content

Commit ede3d59

Browse files
committed
[Legacy Release 2.2.1 - 2024-09-04]
1 parent 72afaec commit ede3d59

File tree

6 files changed

+12
-27
lines changed

6 files changed

+12
-27
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [2.2.1](https://github.com/unzerdev/magento2/compare/2.2.0..2.2.1)
7+
### Fixed
8+
* bank name not needed anymore for eps payment method
9+
610
## [2.2.0](https://github.com/unzerdev/magento2/compare/2.1.1..2.2.0)
711

812
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "unzerdev/magento2",
33
"description": "This extension for Magento 2 provides a direct integration of the Unzer payment types to your Magento 2 shop via the Unzer Payment API (PAPI).",
44
"type": "magento2-module",
5-
"version": "2.2.0",
5+
"version": "2.2.1",
66
"license": "Apache-2.0",
77
"require": {
88
"php": "~7.4.0|~8.1.0",

etc/csp_whitelist.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
<values>
1313
<value id="unzer-payment-1" type="host">https://payment.unzer.com</value>
1414
<value id="unzer-payment-2" type="host">https://payment.heidelpay.com</value>
15+
<value id="unzer-payment-3" type="host">https://sbx-payment.heidelpay.com</value>
1516
<value id="unzer-api-1" type="host">https://api.unzer.com</value>
1617
<value id="unzer-api-2" type="host">https://api.heidelpay.com</value>
18+
<value id="unzer-api-3" type="host">https://sbx-api.heidelpay.com</value>
1719
</values>
1820
</policy>
1921
<policy id="frame-src">
2022
<values>
2123
<value id="unzer-frame-1" type="host">https://payment.unzer.com/</value>
2224
<value id="unzer-frame-2" type="host">https://payment.heidelpay.com/</value>
25+
<value id="unzer-frame-3" type="host">https://sbx-payment.heidelpay.com/</value>
2326
</values>
2427
</policy>
2528
<policy id="font-src">

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4-
<module name="Unzer_PAPI" setup_version="2.2.0">
4+
<module name="Unzer_PAPI" setup_version="2.2.1">
55
<sequence>
66
<module name="Magento_Checkout"/>
77
<module name="Magento_Config" />
Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,18 @@
11
define(
22
[
3-
'ko',
43
'Unzer_PAPI/js/view/payment/method-renderer/base'
54
],
6-
function (ko, Component) {
5+
function (Component) {
76
'use strict';
87

98
return Component.extend({
109
defaults: {
11-
field: {valid: false},
1210
template: 'Unzer_PAPI/payment/eps'
1311
},
1412

1513
initializeForm: function () {
16-
var self = this;
17-
1814
this.resourceProvider = this.sdk.EPS();
19-
this.resourceProvider.create('eps', {
20-
containerId: 'eps-field'
21-
});
22-
23-
this.field.valid = ko.observable(false);
24-
25-
this.resourceProvider.addEventListener('change', function (event) {
26-
self.field.valid(!!event.value);
27-
});
28-
},
29-
30-
allInputsValid: function () {
31-
return this.field.valid;
32-
},
33-
34-
validate: function () {
35-
return this.allInputsValid()();
36-
},
15+
}
3716
});
3817
}
3918
);

view/frontend/web/template/payment/eps.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717
</div>
1818

1919
<form class="unzerUI form" novalidate>
20-
<div id="eps-field" class="field"></div>
2120
<div class="field">
2221
<button class="unzerUI primary button fluid"
2322
data-bind="
2423
click: placeOrder,
2524
attr: {title: $t('Place Order')},
2625
css: {disabled: !isPlaceOrderActionAllowed()},
27-
enable: (getCode() == isChecked() && allInputsValid())
26+
enable: (getCode() == isChecked())
2827
"
2928
type="submit">
3029
<span data-bind="i18n: 'Place Order'"></span>

0 commit comments

Comments
 (0)