From e84f0b1c1dbeade424d9a6f2ffafc93a0aa5e607 Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Fri, 23 Aug 2024 11:14:27 +0200 Subject: [PATCH] [Release 3.2.2 - 2024-08-23] --- CHANGELOG.md | 4 +++ composer.json | 2 +- etc/module.xml | 2 +- .../js/view/payment/method-renderer/eps.js | 25 ++----------------- view/frontend/web/template/payment/eps.html | 3 +-- 5 files changed, 9 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b28805..288fe1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [3.2.2](https://github.com/unzerdev/magento2/compare/3.2.1..3.2.2) +### Fixed +* bank name not needed anymore for eps payment method + ## [3.2.1](https://github.com/unzerdev/magento2/compare/3.2.0..3.2.1) ### Fixed * missing mandatory cardholder field for cards payment method diff --git a/composer.json b/composer.json index a877d50..5d0f8d5 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "unzerdev/magento2", "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).", "type": "magento2-module", - "version": "3.2.1", + "version": "3.2.2", "license": "Apache-2.0", "require": { "php": "~7.4.0|~8.1.0|~8.2.0|~8.3.0", diff --git a/etc/module.xml b/etc/module.xml index 9716422..876c1bf 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - + diff --git a/view/frontend/web/js/view/payment/method-renderer/eps.js b/view/frontend/web/js/view/payment/method-renderer/eps.js index 2db3ce4..ab896c5 100644 --- a/view/frontend/web/js/view/payment/method-renderer/eps.js +++ b/view/frontend/web/js/view/payment/method-renderer/eps.js @@ -1,39 +1,18 @@ define( [ - 'ko', 'Unzer_PAPI/js/view/payment/method-renderer/base' ], - function (ko, Component) { + function (Component) { 'use strict'; return Component.extend({ defaults: { - field: {valid: false}, template: 'Unzer_PAPI/payment/eps' }, initializeForm: function () { - const self = this; - this.resourceProvider = this.sdk.EPS(); - this.resourceProvider.create('eps', { - containerId: 'eps-field' - }); - - this.field.valid = ko.observable(false); - - this.resourceProvider.addEventListener('change', function (event) { - self.field.valid(!!event.value); - }); - }, - - allInputsValid: function () { - return this.field.valid(); - }, - - validate: function () { - return this.allInputsValid(); - }, + } }); } ); diff --git a/view/frontend/web/template/payment/eps.html b/view/frontend/web/template/payment/eps.html index c295ebf..a3c9b72 100644 --- a/view/frontend/web/template/payment/eps.html +++ b/view/frontend/web/template/payment/eps.html @@ -17,14 +17,13 @@
-