From 8f54e70d8410a691ac7290e57cac80e9e7a22c7e Mon Sep 17 00:00:00 2001 From: Kristina Date: Fri, 20 Mar 2026 12:37:31 +0100 Subject: [PATCH 1/3] Rename iDEAL payment method to iDEAL | Wero ISSUE: UPP-394 --- Setup/Patch/Data/UpdateIdealTitle.php | 57 +++++++++++++++++++++++++++ etc/config.xml | 2 +- i18n/de_DE.csv | 4 +- i18n/en_US.csv | 4 +- 4 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 Setup/Patch/Data/UpdateIdealTitle.php diff --git a/Setup/Patch/Data/UpdateIdealTitle.php b/Setup/Patch/Data/UpdateIdealTitle.php new file mode 100644 index 0000000..27a3da1 --- /dev/null +++ b/Setup/Patch/Data/UpdateIdealTitle.php @@ -0,0 +1,57 @@ +moduleDataSetup = $moduleDataSetup; + } + + /** + * @return $this|UpdateIdealTitle + */ + public function apply(): UpdateIdealTitle + { + $connection = $this->moduleDataSetup->getConnection(); + + $connection->update( + $this->moduleDataSetup->getTable('core_config_data'), + ['value' => 'iDEAL | Wero'], + ['path = ?' => self::CONFIG_PATH] + ); + + return $this; + } + + /** + * @return array|string[] + */ + public static function getDependencies(): array + { + return []; + } + + /** + * @return array|string[] + */ + public function getAliases(): array + { + return []; + } +} diff --git a/etc/config.xml b/etc/config.xml index 4ded2a5..5788fdc 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -246,7 +246,7 @@ 0 order authorize_capture - <![CDATA[iDEAL]]> + <![CDATA[iDEAL | Wero]]> 0 0 0 diff --git a/i18n/de_DE.csv b/i18n/de_DE.csv index c4e4b58..5ad96c5 100644 --- a/i18n/de_DE.csv +++ b/i18n/de_DE.csv @@ -3,7 +3,7 @@ "UNZER_CARDS","Kreditkarte / Debitkarte" "UNZER_DIRECT_DEBIT","SEPA Lastschrift" "UNZER_EPS","EPS" -"UNZER_IDEAL","iDEAL" +"UNZER_IDEAL","iDEAL | Wero" "UNZER_PAYLATER_INVOICE","Rechnungskauf (B2C)" "UNZER_PAYLATER_INVOICE_B2B","Rechnungskauf (B2B)" "UNZER_PAYLATER_INSTALLMENT","Ratenkauf" @@ -45,7 +45,7 @@ "Credit Card / Debit Card, ","Kreditkarte / Debitkarte, " "SEPA Direct Debit","SEPA Lastschrift" "EPS","EPS" -"iDEAL","iDEAL" +"iDEAL | Wero","iDEAL | Wero" "Paylater Invoice","Rechnungskauf" "Paylater Invoice B2B","Rechnungskauf B2B" "Unzer Installment","Ratenkauf" diff --git a/i18n/en_US.csv b/i18n/en_US.csv index 9ec9d04..3e070f6 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -3,7 +3,7 @@ "UNZER_CARDS","Credit Card / Debit Card" "UNZER_DIRECT_DEBIT","SEPA Direct Debit" "UNZER_EPS","EPS" -"UNZER_IDEAL","iDEAL" +"UNZER_IDEAL","iDEAL | Wero" "UNZER_PAYLATER_INVOICE","Invoice (B2C)" "UNZER_PAYLATER_INVOICE_B2B","Invoice (B2B)" "UNZER_PAYLATER_INSTALLMENT","Installment" @@ -44,7 +44,7 @@ "Credit Card / Debit Card","Credit Card / Debit Card" "Credit Card / Debit Card, ","Credit Card / Debit Card, " "SEPA Direct Debit","SEPA Direct Debit" -"iDEAL","iDEAL" +"iDEAL | Wero","iDEAL | Wero" "Paylater Invoice","Invoice" "Paylater Invoice B2B","Invoice B2B" "Unzer Installment","Installment" From 662798f93ca2f2cf8c06a515b5fd07592c3a897e Mon Sep 17 00:00:00 2001 From: Boljanovic Date: Mon, 23 Mar 2026 17:17:43 +0100 Subject: [PATCH 2/3] Fix customer company info mapping --- Model/Config/Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Config/Provider.php b/Model/Config/Provider.php index 1a2a103..e0b2917 100644 --- a/Model/Config/Provider.php +++ b/Model/Config/Provider.php @@ -167,7 +167,7 @@ private function applyCustomerConfig(array $methodConfig, Customer $customer): a { $methodConfig['unzerCustomerId'] = $customer->getId(); - if ($customer->getCompany()) { + if ($customer->getCompany() && $customer->getCompanyInfo()) { $companyInfo = $customer->getCompanyInfo(); $methodConfig['companyType'] = $companyInfo->getCompanyType(); $methodConfig['function'] = $companyInfo->getFunction(); From cae41b511cd86c4410a4e06014e07d7d878da997 Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 24 Mar 2026 08:50:40 +0100 Subject: [PATCH 3/3] [Release 4.0.4 - 2026-03-24] --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3020a50..ee59ec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ 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). +## [4.0.4](https://github.com/unzerdev/magento2/compare/4.0.3..4.0.4) +### Fixed +* Resolve issue with customer company information mapping +### Changed +* Rename the iDEAL payment method to iDEAL | Wero + ## [4.0.3](https://github.com/unzerdev/magento2/compare/4.0.2..4.0.3) ### Fixed * Initialization of the Invoice B2B component on the checkout page diff --git a/composer.json b/composer.json index 7833aa2..2a4d80f 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": "4.0.3", + "version": "4.0.4", "license": "Apache-2.0", "require": { "php": "~7.4.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0", diff --git a/etc/module.xml b/etc/module.xml index 5612f3b..f052ef0 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - +