Jump to content
  • 0

How to treat renew function for reseller module


Hey everyone!

I'm currently working on a WHMCS module to allow reselling of our services, however, I need some suggestions on how I can use the renew function?

How our system currently is planned to work:

  1. Reseller's customer orders
  2. Reseller WHMCS module orders from our API
  3. Our API adds a new order on our WHMCS on the reseller's account (attempts account balance/credit card capture) and returns its service ID
  4. Reseller WHMCS module stores that in the database
  • Terminate from reseller opens a cancellation request on service at our WHMCS
  • Cancellation request from reseller opens a cancellation request on service at our WHMCS

I am trying to figure out how I can only renew on our WHMCS if the renew function is called from the reseller module, then to our API (which contacts our WHMCS API). Currently, it will just auto-renew monthly like normal. I thought of constantly having a cancellation request, and only removing it when the renew function is called but that forces all renewals to have to be be done before the day that it is due, and doesn't allow like 7 days of being suspended.

Thanks in advance!

Edited by CodeCo

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

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