• Changed 'companyName' into a global variable. • Changed 'whmcsAdminURL' into a global variable. • Changed 'discordWebHookURL' into a global variable. • Removed "Global Variables do not work" message since they do and has been successfully tested.
Changed orders.php to invoices.php in two hooks.
Corrected the code so it now runs smoothly. Clearly labeled sections of the code which need to be configured. Optimised code into one function.