Open dimitriBouteille opened 10 months ago
Hi @dimitriBouteille,
Thank you for opening this issue with us. This indeed sounds a good approach and goes in hand with making our plugin more extendible and customizable.
Allow us to think about this in a broader scope and investigate into emitting events for other modifications as well. We are picking this investigation on our end.
Cheers, Rok
It's possible to add an event when order is finalized ? Maybe add event here at the end of function
finalizeOrder
:https://github.com/Adyen/adyen-magento2/blob/81ad577f44d831bc518b9cd6d51385573d288c14/Helper/Order.php#L240
In my case I want execute some code when order is finalized.
Describe the solution you'd like
Just add event (ie:
adyen_finalized_notification_success
) with$order
and$notification
arguments before the returns only if$triggerEvent = true
.Describe alternatives you've considered
Create plugin
afterFinalizeOrder
but with this solution it's not possible to know the event was executed :(