Magicklug Posted January 22, 2021 Share Posted January 22, 2021 Hi, How can I test the whmcs hook 'invoicepaid' without paying the invoice each time to test the output of the $vars and function ? Quote <?php add_hook('InvoicePaid', 1, function($vars) { // Perform hook code here... }); Could it be something like that can trigger the invoicepaid hook ? e.g. ?id=43&hook=invoicepaid? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2021 Share Posted January 22, 2021 3 hours ago, Magicklug said: How can I test the whmcs hook 'invoicepaid' without paying the invoice each time to test the output of the $vars and function ? get yourself a free dev license (if you get your license direct from WHMCS) and then you won't have to worry about creating and paying dummy invoices. https://www.whmcs.com/members/knowledgebase.php?action=displayarticle&id=78 3 hours ago, Magicklug said: Could it be something like that can trigger the invoicepaid hook ? e.g. ?id=43&hook=invoicepaid? that wouldn't work. if you can't get a dev install, then you could work on the function in another hook, even if it's clientareapage and you can trigger the function to run only if certain conditions are met. 1 Quote Link to comment Share on other sites More sharing options...
Magicklug Posted January 28, 2021 Author Share Posted January 28, 2021 I see, thanks! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.