-
Notifications
You must be signed in to change notification settings - Fork 69
Dev Events
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. 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).
German Support: meinsupport@mollie.com | International Support: info@mollie.com
- Alma
- Apple Pay
- Apple Pay Direct
- Bancomat Pay
- Bancontact
- Belfius
- Billie
- Billink
- Bizum
- Blik
- Credit Card
- EPS
- Giftcard
- iDEAL
- iDEAL in3
- KBC / CBC
- Klarna One
- MB Way
- MobilePay
- Multibanco
- My Bank
- Pay by Bank
- Paysafecard
- PayPal
- Paypal Express
- POS Terminals
- Przelewy24
- Riverty
- Satispay
- Swish
- SEPA Bank Transfer
- TWINT
- Vipps
- Voucher
- Wero
- Google Pay
- Commands
- Shipments
- Refunds
- Payment Links
- One-Click Payments
- Subscriptions
- Order State Automation
- Maintenance Mode
- Headless Setup
- Flow Builder
- Connecting ERP/Order Management Software
- Rounding