fahed Posted January 29, 2017 Share Posted January 29, 2017 Hi All, I have developed a script to cancel 2CO recurring billing when a service is suspended, cancelled or terminated. For that I am using 'ServerEdit' hook to invoke the script. The script is running as expected when I suspend a service manually from whmcs, ie by changing the service status to suspended, cancelled or terminated from service page. However it looks like the script is not being called when the service is suspended by system cron. Is 'ServerEdit' hook actually called by system cron when suspending a service or am I doing something wrong here?. What I understand is that, when a customer cancels a service, a cancellation request is created and the service is cancelled by the system cron based on option selected like 'immediate cancellation' or 'cancel on end of bill cycle'. Can I rely on system cron for this task or should I need to create separate cron script? 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.