1

I am working on this Magento 2 extension and part of the features is need to entry in another table where order total will be inserted. so what I need is to find order invoice status paid event observer.How can I get order invoice status paid event in observer?

2
  • what do you mean by order paid? Apr 11, 2018 at 13:19
  • Once full invoice is generated. Apr 11, 2018 at 13:24

1 Answer 1

1

Here is the list of Magento 2 events.

https://cyrillschumacher.com/magento2-list-of-all-dispatched-events/

In your case you can use sales_order_invoice_pay event which is calling from below location inside pay() function.

vendor/magento/module-sales/Model/Order/Invoice.php

$this->_eventManager->dispatch('sales_order_invoice_pay', [$this->_eventObject => $this]);
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.