Skip to content

Dev Events

Vitalij Mik edited this page Jul 22, 2026 · 2 revisions

Events (Overview)

The Mollie plugin dispatches a number of events that let you customize the behaviour of specific parts of the payment flow.

Please note: all customizations in this area mean that the plugin is no longer working in a way that we have been able to fully test. In case of problems with the plugin, try to remove your customizations before contacting support.

Since the switch to the Mollie Payments API (plugin version 5.x), the available events have changed significantly. They are grouped into three categories:

  • Payload Events – modify the request payload right before it is sent to the Mollie API (payments, orders, payment links, refunds, subscriptions).
  • Lifecycle Events – react to steps in the payment and subscription lifecycle (payment initialized/created/finalized, subscription started/renewed/cancelled, shipments, ...).
  • Flow Builder Events – business events that can be used as triggers in the Shopware Flow Builder (payment status, webhooks, refunds, subscriptions).

All events are plain PHP objects that you subscribe to via a standard Symfony EventSubscriberInterface.

Deprecated

MollieOrderBuildEvent

⚠️ Deprecated. This event belonged to the old Mollie Orders API and is no longer dispatched since the plugin switched to the Payments API (5.x).

Previously this event was dispatched when the payload for the Mollie order request was built and allowed adjusting a selected list of parameters (e.g. the metadata):

public static function getSubscribedEvents()
{
    return [
        MollieOrderBuildEvent::class => 'onMollieOrderBuild'
    ];
}

public function onMollieOrderBuild(MollieOrderBuildEvent $event)
{
    $event->setMetadata(['custom' => 'my-data']);
}

To modify a payload today, use the corresponding Payload Event instead (e.g. ModifyCreatePaymentPayloadEvent / ModifyCreateOrderPayloadEvent).

Clone this wiki locally