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:
Reseller's customer orders
Reseller WHMCS module orders from our API
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
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!