php - What's the right magento observer event to capture order paid? -
I am trying to send orders after a payment order and only to a third party and now set What is the best supervisor to use it to work for all the payment types for 'processing' as a situation?
After reading several sources it looks like:
sales_order_invoice_pay
should work for all payment methods but it seems It has been removed on Magento 1.9: ( this list is incomplete, please check the update below )
The second option was:
'sales_order_payment_pay'
But when I test that "check / money order" after ordering it did not remove it after generating an invoice on the backend Have been > Invoice> Submit Invoice
Is this method only called with other payment methods? (PayPal / authotize.net)
Update:
After reading: This second question is the only way to guarantee that I export one After payment (online or offline) the order has been made to capture when an invoice has been created, and is the perfect supervisor for Magento 1.9:
sales_order_invoice_register
Invoice created automatically and sent online after payment on Paypal / authotize.net online methods?
2 update:
P> After too much testing, it seems that
'sales_order_invoice_pay' / Code> is the right way to use what I need to get.
about checkout_onepage_controller_success_action
. It can be used if your order payment success is another event sales_order_payment_capture
. It can also be used in your case I did not use it earlier.
Check it
Edit
According to the discussion, it seems that sales_order_invoice_pay
is right for capturing for order payment Observer and that event is still available in Magento 1.9. (Not demoted)
For more context, check it
Comments
Post a Comment