I need to execute some custom code after invoice is created
I have some code working fine, when invoices are created in admin storeview (I am observing sales_order_save_before event & checking for a state change to detect if the invoice has been created), but this does not work when 3rd party payment methods create the invoice during frontend checkout process
I am not sure if I can achieve this with observer / event approach, or maybe a plugin should be the right method. Any tips?