I am trying to find the correct method to create the afterPlugin for. I need to collect and send the invoice data after it is created and saved, I tried with both afterRegister and afterPay but both works before the invoice is saved, please advise which method should be used to capture a newly created invoice after it is saved. So it would have incrementID, createdAt, etc...
I would prefer a plugin rather than an observer
Note: I am trying to do this function when the user hit submit button and its only for newly created invoices, not edited ones (if that is possible)