Jump to content

API to inform module if subscription payment has been made for a product/service?


visualtron

Recommended Posts

Hi,

 

I want to use WHMCS product/service order feature for software license subscription. I will need to allow my user to generate a key with an expiry date - this date is stored in a table separate from WHMCS.

 

Whenever the user makes a subscription payment, I will need WHMCS to inform my "custom php script" to extend the "expiry date" by 1 year into the future so that keys generated for that installation will expire also 1 year into the future.

 

Can this be done? I took a look at Registrar API, there does not seem to be a "on payment function".

 

I also checked the Add invoice payment API, but it doesn't seem to provide a param that I can use to link back to a product.

 

http://wiki.whmcs.com/API:Add_Invoice_Payment

 

Looking forward to any comments. 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