1

I need sales_order_invoice_pay as observer for add some amount after first order invoiced. But this observer fired when order placed. Did we have any Magento bug or am going wrong?

 <event name="sales_order_invoice_pay">
    <observer name="reagent_add_amount_wallet" instance="Company\Reagent\Observer\AddAmountToWallet"/>
</event>
1
  • Are you using any payment gateway? Bacause third party payment gateway has options for invoice creation after payment. So may be this is the issue as you are using the right event. Jul 7 '18 at 7:04
1

You can try event controller_action_postdispatch_sales_order_invoice_save if you want to execute your code after invoice generation from admin.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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