An event that fires when an invoice is created.
The onInvoiceCreated()
event handler runs when an invoice is created. The received Invoice
object contains information about the invoice that was created.
Note: Backend events don't work when previewing your site.
The invoice that was created.