Jump to content

Addon Module - Close unpaid client accounts


Recommended Posts

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.

Link to comment
Share on other sites

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 :D

 

More info http://wiki.whmcs.com/PDF_Invoice

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