Changelog
All notable changes to the Mondu Shopware 6 Payment Plugin will be documented in this file.
[1.6.1] - 2025-12-18
Added
- Payment Method Specific Logos: Each Mondu payment method now displays its own unique logo in the admin panel and storefront footer
- Invoice (Net 30):
invoice_white_rectangle.png - SEPA Direct Debit:
sepa_white_rectangle.png
- Invoice (Net 30):
- Installment Payments:
installments_white_rectangle.png- Pay Now:
instant_pay_white_rectangle.png - New
PAYMENT_METHOD_LOGOSconstant inPaymentMethodsclass for logo mapping getPaymentMethodLogoMediaId()method inMediaProviderfor handling payment-specific logoshasMediaAlreadyInstalledByName()method for checking existing media by custom name
- Pay Now:
- Address Additional Fields Handling: New configuration options for handling Shopware's additional address fields
handlingAddressAdditionalField1- Configure how to handle Address Additional Field 1handlingAddressAdditionalField2- Configure how to handle Address Additional Field 2
- Options: Ignore, Add to Mondu Address Line 1, or Add to Mondu Address Line 2
- Applies to both billing and shipping addresses
- New configuration methods:
getHandlingAddressAdditionalField1()andgetHandlingAddressAdditionalField2()
- Payment State Handling: Fixed transaction state handling when "Authorized" is configured as the payment state
- Previously, the configured "Authorized" state was not properly applied after successful order placement
- Now correctly calls
transactionStateHandler->authorize()when "Authorized" is selected in plugin configuration - Ensures proper order workflow for merchants using authorization-based payment flows
Changed
- Refactored Resource Path Handling: Replaced hardcoded paths with Dependency Injection
- Added
$pluginPathparameter toMediaProviderconstructor - Introduced
mondu.plugin.pathparameter inservices.xml - Resource paths now use
%kernel.project_dir%Symfony parameter - Improved testability and configurability
- Added
- Updated
updatePaymentMethodImage()to use specific logos per payment method with fallback to default logo
Fixed
- Critical Bug: Fixed
TypeErrorduring plugin uninstallation- Changed
MonduClient::$keyproperty fromstringto nullable?string - Resolved "Cannot assign null to property MonduClient::$key of type string" error
- Plugin can now be safely uninstalled without errors
- Changed
Technical Improvements
- Better adherence to Shopware 6 best practices for resource management
- Eliminated use of
dirname(__DIR__)in favor of dependency-injected paths - Enhanced code maintainability and readability
- All paths are now configurable through Symfony DI container