Skip to content

Release 1.6.1 v6.6

Latest

Choose a tag to compare

@ivan-pugach-mondu ivan-pugach-mondu released this 18 Dec 12:29
7524f88

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
  • Installment Payments: installments_white_rectangle.png
    • Pay Now: instant_pay_white_rectangle.png
    • New PAYMENT_METHOD_LOGOS constant in PaymentMethods class for logo mapping
    • getPaymentMethodLogoMediaId() method in MediaProvider for handling payment-specific logos
    • hasMediaAlreadyInstalledByName() method for checking existing media by custom name
  • Address Additional Fields Handling: New configuration options for handling Shopware's additional address fields
    • handlingAddressAdditionalField1 - Configure how to handle Address Additional Field 1
    • handlingAddressAdditionalField2 - 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() and getHandlingAddressAdditionalField2()
  • 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 $pluginPath parameter to MediaProvider constructor
    • Introduced mondu.plugin.path parameter in services.xml
    • Resource paths now use %kernel.project_dir% Symfony parameter
    • Improved testability and configurability
  • Updated updatePaymentMethodImage() to use specific logos per payment method with fallback to default logo

Fixed

  • Critical Bug: Fixed TypeError during plugin uninstallation
    • Changed MonduClient::$key property from string to nullable ?string
    • Resolved "Cannot assign null to property MonduClient::$key of type string" error
    • Plugin can now be safely uninstalled without errors

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