Jump to content
  • 0

How to treat renew function for reseller module


CodeCo

Question

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
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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