WHMCS Hooks
InvoicePaid
Executes when an invoice is Paid following the email receipt having been sent and any automation tasks associated with the payment action having been run.
Application
Upon payment of invoice, lookup invoice_id in top ups table and activate top up when paid.