robotronik Posted July 28, 2009 Share Posted July 28, 2009 As I am sure a lot of you will have experienced a lot of orders get purchased and accounts get setup but the payment is never made! This leaves an annoying invoice overdue notice for clients that never had any intention of paying. I am a PHP developer but not so good with the variables of WHMCS... I would like to get some information on the variables I would need to make an addon module that will close these annoying accounts. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
DedicatedPros Posted July 28, 2009 Share Posted July 28, 2009 Well the way I would set it within my billing system is to find accounts with unpaid invoices, if an invoice is marked as unpaid for three days, delete the account. There is some basic syntax available in the whmcs documentation, but what you'd need is: $status (whether the invoice is paid, unpaid, or cancelled) $duedate (when the invoice is due) So if the $status is unpaid, and you grab today's date from the server and its three days after the $duedate than delete the account Though you'll need to make sure that if there is more than one service on the account (one of which is active) the account does not get deleted as people will get pissed off More info http://wiki.whmcs.com/PDF_Invoice 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.