Jump to content

Services getting suspended and Next Due Date not updating


Recommended Posts

Hi there,

 

I have developed a Third Party Gateway module for my employer to handle Direct Debit invoice payments using Ezidebit. Everything works as expected but only issue we are facing is that once an invoice is marked as paid the "Next Due Date" is not being updated automatically as expected and therefore, the service is getting suspended!

 

Direct Debit payments takes a couple of days to complete and so I needed a status to indicate that the invoice is currently being handled by the payment gateway (Ezidebit). As WHMCS does not have any Pending status for invoices, I have added a custom status "Pending" by updating the invoice directly in the database. We run a cron script to update the statuses of the direct debit payments. Once payment is successful after a transaction is applied (through gateway callback function) and invoice status is changed to Paid (also adding the date paid to the day its been paid). WHMCS does not seem to update the service's Next Due Date when the invoice is paid. In turn, the service (with recurring payment) gets suspended automatically. Today over 50 of our services have gotten suspended and we are manually un-suspending them. I am not sure what am I missing here or is it a WHMCS bug? What does trigger the update of the Next Due Date of a service with recurring payment?

 

Any help would be greatly appreciated.

 

Thanks!

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