Jump to content

Cron and ServerEdit hook


fahed

Recommended Posts

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated