Eugene Posted December 23, 2019 Share Posted December 23, 2019 Hello, I want a hook in whmcs which will be triggered when the invoice status is changed. For example Invoice status changed to Paid Invoice status changed to collection  I was looking at the following hook index but couldn't find any hook which does this. Please suggest me which hook is possible here. https://developers.whmcs.com/hooks/hook-index/ 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 24, 2019 Share Posted December 24, 2019 As far as I know there isn't an "InvoiceStatusChange" hook point but probably other hook points can be used. It all depends on what you are trying to do. Could you explain? 1 Quote Link to comment Share on other sites More sharing options...
Eugene Posted December 24, 2019 Author Share Posted December 24, 2019 1 hour ago, Kian said: As far as I know there isn't an "InvoiceStatusChange" hook point but probably other hook points can be used. It all depends on what you are trying to do. Could you explain? Thank you for your reply Kian. I was able to use two different alternative hook which did my work :) Â 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 27, 2019 Share Posted December 27, 2019 On 24/12/2019 at 12:59, Eugene said: I was able to use two different alternative hook which did my work 🙂 you might want to share them in case others in a similar situation want to use them. 💡 0 Quote Link to comment Share on other sites More sharing options...
Mohsin Sumar Posted January 5, 2020 Share Posted January 5, 2020 On 12/24/2019 at 3:59 PM, Eugene said: Thank you for your reply Kian. I was able to use two different alternative hook which did my work 🙂  Hi - I’m looking for a similar hook, to do some processing whenever an invoice is changed or modified. Would you mind sharing which alternative hooks helped you achieve your objective? 0 Quote Link to comment Share on other sites More sharing options...
Eugene Posted January 5, 2020 Author Share Posted January 5, 2020 (edited) On 12/27/2019 at 6:41 PM, brian! said: you might want to share them in case others in a similar situation want to use them. 💡  15 minutes ago, Mohsin Sumar said: Hi - I’m looking for a similar hook, to do some processing whenever an invoice is changed or modified. Would you mind sharing which alternative hooks helped you achieve your objective? Im sorry for the delay. LogTransaction is a hook which worked for me. Whenever an invoice is marked as paid via gateway this look is called 🙂 I hope it helps, if you have some other requirements let me know. I will try to help you out with alternate hooks to get your work done.      Edited January 5, 2020 by Eugene 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.