문제

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?

도움이 되었습니까?

해결책

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]);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top