WHMCS API / modification
- or -
Post a project like this4157
£100(approx. $126)
- Posted:
- Proposals: 3
- Remote
- #189504
- Awarded
Description
Experience Level: Intermediate
I am hoping to use WHMCS as a shopping cart and member admin system for a subscription based application (i.e. NOT hosting).
I have set it up so it all works except one problem - I have a seperate application which is built on LAMP which I need to continue to use to control logins etc to my application so I need a way of adding users to my database as soon as they are added to WHMCS.
I have actually gotten it to work locally on my dev server working on a local copy of the WHMCS database so I know all the tables and fields etc and have all the queries written to find, extract and then insert the data into my database but WHMCS is built on Smarty which I know nothing about and the core PHP files are encoded using IonCube so I cannot access the code.
I have two core tables I need kept in perfect sync with WHMCS - companies and licenses.
To clarify:
When a user signs up via WHMCS, I need to insert their details (company name, address etc, email, password, product details and so on) into my database
When they make a payment I need to trigger a call to my database to update my license table (i.e. extend their license expiry date to a future date depending on how long they pay for)
If they fail to pay and WHMCS deactivates their account I need to update my license table to reflect this
If they want to change package, this is done via WHMCS (inc all the payment handling etc) but the changes are synced back to my application license table to ensure I know what their current entitlement is
When they edit their account (on either side) I need to sync those details to the other database
I am assuming this can be done using the API (http://docs.whmcs.com/API) in WHMCS or code hooks (http://docs.whmcs.com/Hooks) but it doesn't matter to me how it is done as long as it is secure and simultaneous
Ultimately I do not want them to have to login to two separate systems - they signup via WHMCS, they login via my application, WHMCS looks after invoicing and payment and it is all seamless in the background.
Both databases are MySQL 5 running on the same server.
I have set it up so it all works except one problem - I have a seperate application which is built on LAMP which I need to continue to use to control logins etc to my application so I need a way of adding users to my database as soon as they are added to WHMCS.
I have actually gotten it to work locally on my dev server working on a local copy of the WHMCS database so I know all the tables and fields etc and have all the queries written to find, extract and then insert the data into my database but WHMCS is built on Smarty which I know nothing about and the core PHP files are encoded using IonCube so I cannot access the code.
I have two core tables I need kept in perfect sync with WHMCS - companies and licenses.
To clarify:
When a user signs up via WHMCS, I need to insert their details (company name, address etc, email, password, product details and so on) into my database
When they make a payment I need to trigger a call to my database to update my license table (i.e. extend their license expiry date to a future date depending on how long they pay for)
If they fail to pay and WHMCS deactivates their account I need to update my license table to reflect this
If they want to change package, this is done via WHMCS (inc all the payment handling etc) but the changes are synced back to my application license table to ensure I know what their current entitlement is
When they edit their account (on either side) I need to sync those details to the other database
I am assuming this can be done using the API (http://docs.whmcs.com/API) in WHMCS or code hooks (http://docs.whmcs.com/Hooks) but it doesn't matter to me how it is done as long as it is secure and simultaneous
Ultimately I do not want them to have to login to two separate systems - they signup via WHMCS, they login via my application, WHMCS looks after invoicing and payment and it is all seamless in the background.
Both databases are MySQL 5 running on the same server.
Jason D.
100% (67)Projects Completed
113
Freelancers worked with
97
Projects awarded
33%
Last project
19 Nov 2021
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies