Author Topic: [module] WHMCS (Fix)  (Read 1568 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
[module] WHMCS (Fix)
« on: March 13, 2019, 04:17:46 AM »
ihoscwp7
WHMCS Module (Fix) for Centos-WebPanel (CWP) by IHOS

Attention ! The module was created fixed for my private use, in case of error I will be happy to fix it as far as possible!

Credits

Based on Module http://wiki.centos-webpanel.com/whmcs-module-for-cwp-api

Tested on version
WHMCS: 7.7.1
CWPpro version: 0.9.8.779

Screenshot


Features:
Add Account - Working
Edit Account - Working
Suspend Account - Working
Unsuspend Account - Working
Delete Account - Working
Change Password - Working
Edit Packages - Working

Future Implementations:
#Admin Dashboard Widgets
Provide necessary and important information in your interface in the administrator's home page panel.

#Loader Functions
An example use case for this is for a Package or Plan name field, where the values need to be fetched via an API from the remote system where the Packages or Plans are defined. Without a loader function, the end user would have to manually enter the package or plan name for the product. With a loader being used, WHMCS will poll the remote API service for a list of possible values when the field is rendered to the end user and allow them to make a choice.

#Client Area Output
Product Details Page Output
Creating output to display on the same page as the product details in the client area is easy.

#Admin Services Tab
Admin Services Tab functions allow definition of extra fields to appear on the product details in the admin area. Used for informational output, or for settings and values stored in custom tables or outside WHMCS.

Installation:

[1]. Extract file ihoscwp7.zip in your WHMCS folder

WHMCS/modules/servers/

As extracted module file path will look like this WHMCS/modules/servers/ihoscwp7/ihoscwp7.php

[2]. In WHMCS

In Menu goto: Setup -> Products/Services -> Servers
Add New Server and under "Server Details"
Type = IHOS CWP7
Username: root
Password: (your server password)
Access Hash: copy your key from CWP API

[3]. Generate API Key on the CWP server

Goto Left-Menu -> CWP Settings -> API Manager

Use the following permissions:
-Add, Edit, Suspend, Unsuspend and Delete Accounts
-Edit Packages
-Change Password

Updates
Changelog

[INFO] Date: 13/03/2019
[INFO] Version Release: 1.0.0
  • Fix/Revised methods CreateAccount, SuspendAccount, UnsuspendAccount, TerminateAccount, ChangePassword, ChangePackage
  • Added detailed success and error logs in all methods
  • Added verification on file for not directly accessing
  • Added exception handling
More Info and Download: https://bitbucket.org/vinicius_ihos/ihoscwp7

! IMPORTANT
If there is any problem or you have suggestion to add or request please reply here on the forum.
Please don't send me PM's.
Any code fixes, improvements, etc. Bitbucket can be used.
« Last Edit: March 13, 2019, 04:39:42 AM by IHOS »

Offline
*
Re: [module] WHMCS (Fix)
« Reply #1 on: March 16, 2019, 03:57:29 AM »
Update! - New version available | 1.0.1

 * Date: 16/03/2019
 * Version Release: 1.0.1
 * + Added function ihoscwp7_LoaderFunction

List of Packages are now automatically loaded

ScreenShot




Offline
***
Re: [module] WHMCS (Fix)
« Reply #2 on: March 18, 2019, 01:25:15 PM »
Fantastic, I will check the module now.

Also, don't forget to submit your module to https://marketplace.whmcs.com/

Offline
***
Re: [module] WHMCS (Fix)
« Reply #3 on: March 20, 2019, 03:50:34 PM »
I have started testing your module and I am reporting first bug.

When I click on "Admin Control Panel" button, it takes me to CWP Admin login page but it does not automatically get me in.

Kindly fix it.



Offline
*
Re: [module] WHMCS (Fix)
« Reply #4 on: March 21, 2019, 02:05:05 AM »
For now the auto login is not available for any of the environments!

Offline
***
Re: [module] WHMCS (Fix)
« Reply #5 on: March 23, 2019, 06:40:10 AM »
For now the auto login is not available for any of the environments!

OK. Have not you any API command/access for the same?

Offline
*
Re: [module] WHMCS (Fix)
« Reply #6 on: June 11, 2019, 12:54:08 PM »
i'm using CWP with WHMCS 7.7.1 however Termination not working?
any advise?

Offline
****
Re: [module] WHMCS (Fix)
« Reply #7 on: September 22, 2019, 12:27:58 PM »
For now the auto login is not available for any of the environments!

OK. Have not you any API command/access for the same?

you can download with AUTOLOGIN here: https://gitlab.com/whmcs-proyects/servers/centos-webpanel

Spammer.  Page has link for paid support

Offline
*
Re: [module] WHMCS (Fix)
« Reply #8 on: November 06, 2019, 07:10:55 AM »
I really like your idea of fetching the packages from the server into WHMCS but I was missing the autologin from the other package so I combined yours and the other one to get both worlds. If anyone is interested I can share it.

Update! - New version available | 1.0.1

 * Date: 16/03/2019
 * Version Release: 1.0.1
 * + Added function ihoscwp7_LoaderFunction

List of Packages are now automatically loaded

ScreenShot



Offline
***
Re: [module] WHMCS (Fix)
« Reply #9 on: November 07, 2019, 11:02:03 AM »
I really like your idea of fetching the packages from the server into WHMCS but I was missing the autologin from the other package so I combined yours and the other one to get both worlds. If anyone is interested I can share it.

Update! - New version available | 1.0.1

 * Date: 16/03/2019
 * Version Release: 1.0.1
 * + Added function ihoscwp7_LoaderFunction

List of Packages are now automatically loaded

ScreenShot



Yes. Please share the files.