nickia Posted June 22, 2011 Share Posted June 22, 2011 Hi, I'm running a non-hosting SAAS and use WHMCS as my payment system Since I can't use cronjob to activate my service automatically, I use the database of WHMCS to achieve automatic service activation on my software. Whenever a client pays an invoice, the time between now and the "nextduedate"(Under TBLHOSTING) is the valid subscription period. This method works well under recurring model. However, I'm only able to accept recurring payment because of the limitation of my hack. When accepting one-time payment, WHCMS does not record the "nextduedate" so I'm unable to determine the valid subscription period. Is there any entry in the database that indicates this otherwise? What I need is the integer subscription length of the package after the payment is fully paid. 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted June 22, 2011 Share Posted June 22, 2011 You can always use a hook to set that database variable for you and set it to the absolute max time stamp available to prevent expiration. 0 Quote Link to comment Share on other sites More sharing options...
Saineolach Posted June 23, 2011 Share Posted June 23, 2011 What jeremyhaber said, API hooks seem to work well for this kinda stuff. Go look 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.