Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Model/Config/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
57 changes: 57 additions & 0 deletions Setup/Patch/Data/UpdateIdealTitle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

declare(strict_types=1);

namespace Unzer\PAPI\Setup\Patch\Data;

use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;

class UpdateIdealTitle implements DataPatchInterface
{
private const CONFIG_PATH = 'payment/unzer_ideal/title';

/** @var ModuleDataSetupInterface */
private ModuleDataSetupInterface $moduleDataSetup;

/**
* @param ModuleDataSetupInterface $moduleDataSetup
*/
public function __construct(
ModuleDataSetupInterface $moduleDataSetup
) {
$this->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 [];
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
<active>0</active>
<payment_action>order</payment_action>
<order_payment_action>authorize_capture</order_payment_action>
<title><![CDATA[iDEAL]]></title>
<title><![CDATA[iDEAL | Wero]]></title>
<allowspecific>0</allowspecific>
<min_order_total>0</min_order_total>
<max_order_total>0</max_order_total>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Unzer_PAPI" setup_version="4.0.3">
<module name="Unzer_PAPI" setup_version="4.0.4">
<sequence>
<module name="Magento_Checkout"/>
<module name="Magento_Config" />
Expand Down
4 changes: 2 additions & 2 deletions i18n/de_DE.csv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions i18n/en_US.csv

Large diffs are not rendered by default.

Loading