Hosting Quota Notifications 1.X For WHMCS
(→Basic Configuration) |
(→Basic Configuration) |
||
Line 220: | Line 220: | ||
==Basic Configuration== | ==Basic Configuration== | ||
{| | {| | ||
− | |style="padding: 10px 0px 15px 15px;"|Let's start the module settings from choosing '' 'Default Product SKU ID'. '' In other words Google services.<br /> | + | |style="padding: 10px 0px 15px 15px;"|Let's start the module settings from choosing '' '''Default Product SKU ID'''. '' In other words Google services.<br /> |
As you can see on the following screen our module supports Google Apps For Business, Google Drive Storage and Google Vault. | As you can see on the following screen our module supports Google Apps For Business, Google Drive Storage and Google Vault. | ||
|} | |} | ||
Line 227: | Line 227: | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 20px 15px;"|'' 'Plan Name' '' allows you to select the method of payment. You can | + | |style="padding: 0px 0px 20px 15px;"|'' '''Plan Name''' '' allows you to select the method of payment. You can choose: |
− | '' '''Note:''' Since G Suite 1.1.5 module version | + | * '''ANNUAL''' - the annual commitment plan with monthly payments |
+ | * '''ANNUAL_YEARLY_PAY''' - the annual commitment plan with yearly payments | ||
+ | * '''FLEXIBLE''' - billed monthly for the number of user accounts used that month | ||
+ | * '''TRIAL''' - the 30-day free trial plan | ||
+ | '' '''Note:''' Since G Suite 1.1.5 module version ANNUAL plan is equivalent to ANNUAL_MONTHLY_PAY in G Suite API.'' | ||
|} | |} | ||
{| | {| | ||
Line 234: | Line 238: | ||
|} | |} | ||
{| | {| | ||
− | |style="padding: 0px 0px 20px 15px;"| | + | |style="padding: 0px 0px 20px 15px;"|'' '''Rennewal Type''' '' - choose how to renew your plan when the current subscription expires. The available options are: |
+ | * '''AUTO_RENEW_MONTHLY_PAY''' - at the end of an annual commitment plan's interval, automatically renew the subscription plan with monthly payments and with the same number of user licenses | ||
+ | * '''AUTO_RENEW_YEARLY_PAY''' - at the end of an annual commitment plan's interval, automatically renew the subscription plan with yearly payments and the same number of user licenses | ||
+ | * '''CANCEL''' - At the end of an annual commitment plan's interval, the customer's account is suspended | ||
+ | * '''RENEW_CURRENT_USERS_MONTHLY_PAY''' - at the end of an annual commitment plan's interval, renew the subscription plan with monthly payments but use the total number of current active user licenses | ||
+ | * '''RENEW_CURRENT_USERS_YEARLY_PAY''' - at the end of an annual commitment plan's interval, renew the subscription plan with yearly payments but use the total number of current active user licenses | ||
+ | * '''SWITCH_TO_PAY_AS_YOU_GO''' - at the end of an annual commitment plan's interval, change the annual commitment plan to a flexible plan | ||
+ | |} | ||
+ | {| | ||
+ | |style="padding: 0px 0px 20px 25px;"|[[File:GA17_1.png]] | ||
+ | |} | ||
+ | {| | ||
+ | |style="padding: 0px 0px 20px 15px;"|'' '''Action On Terminate''' '' - here you can decide whether on terminate you want to suspend or cancel customer's services. | ||
|} | |} | ||
{| | {| |
Revision as of 09:24, 29 August 2017
Contents |
About G Suite For WHMCS
G Suite For WHMCS will enable you to provision and manage Google accounts in your own WHMCS system. Authenticate through OAuth 2.0, create flexible products and let your clients order ready Google services directly from your website. |
- Admin Area Features:
✔ Create/Suspend/Unsuspend/Terminate Account |
✔ Change Package |
✔ Define Plan Name |
✔ Define Renewal Type |
✔ Choose Action On Terminate |
✔ Log API Requests |
✔ Set Configurable Options Per Product: |
✔ Product SKU ID |
✔ Number of Seats |
- Client Area Features:
✔ View Customer Info |
✔ Log In To Control Panel |
✔ Log In To Webmail |
- Available Google Services:
✔ Google Apps For Business |
✔ Google Vault |
✔ Google Drive Storage |
- General Info:
✔ Authentication And API Calls Utilize OAuth 2.0 |
✔ Multi-Language Support |
✔ Supports PHP 5.4 Up To PHP 7 |
✔ Supports WHMCS Templates Five and Six |
✔ Supports WHMCS V6 and V7 |
Installation and Authentication
This tutorial will show you how to successfully install and authenticate G Suite For WHMCS. We will guide you step by step through the whole installation and authentication process. |
1. Log in to your client area and download the module. |
2. In the downloaded file you will find two packages that support different PHP versions. As presented on the screen below, the first one is dedicated to PHP 7, while the second one is aimed at PHP 5.4 up to PHP 5.6. It does not apply to open source versions. Note: You can check current PHP version in your WHMCS. To do so proceed to 'Utilities' → 'System' → 'PHP Info'. |
3. Extract the downloaded file and choose the one with the right PHP version. Upload and extract the PHP file into the main WHMCS directory. The content of PHP version files should look like this. |
4. When you install G Suite For WHMCS for the first time you have to rename 'license_RENAME.php' file. File is located in 'modules/servers/googleapps/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'. |
5. In order to configure your license key you have to edit a previously renamed 'license.php' file. Enter your license key between quotation marks as presented on the following screen. You can find your license key in your client area → 'My Products'. |
API Configuration
6. Now you have to authenticate the module through setting up API Access. Create API Access in Google Console. You can do it here → https://code.google.com/apis/console/ |
7. After you have logged in, create a new project. |
8. You have just entered Google API Manager. Firstly, go to 'OAuth consent screen' under 'Credentials' section. Afterwards, enter email address and product name, they will be visible during your requests. |
9. To proceed, go to 'Google APIs' under 'Overview' tab. Find 'Google Apps Reseller API' among all applications. |
10. You have to enable 'Google Apps Reseller API' as shown on the following screen. |
11. Now, switch to 'Credentials' tab and add new credentials . |
12. Afterwards, tick 'Web application'. Next, enter website URL into 'Authorized JavaScript origins' field and path to 'oauth_callback.php' into 'Authorized redirect URI' field. |
13. Well done, now when you have all the necessary details you can proceed to authenticate Google Apps. |
Product Configuration
14. Now go back to your WHMCS system and create a new product for your GoogleApps. Move to 'Setup' → 'Products/Services' → 'Products/Services' and add a new product. |
15. Choose product type and product group from dropdown menus and enter your new product's name. 'Continue'. |
16. Go to 'Module Settings' of your product and choose 'Googleapps' from a 'Module Name' dropdown menu. |
17. Enter your previously obtained 'Client ID', 'Client Secret' and make sure that 'Callback URL' is correct. Then press 'Grant access with Google account'. |
18. If your entered data are correct, you will be redirected to the page with permission request. Press 'Allow access' button. |
19. And that is all. You will be redirected back to your WHMCS and you will see a following screen. Move to 'Custom Fields' now. |
20. Move to 'Custom Fields' now. Fields called 'GoogleApps Domain' and 'GoogleApps PurchaseOrderID' are added automatically. |
Configuration and Management
Configuration and management of G Suite For WHMCS is very intuitive. Read the below sections to see how easy it is. |
Basic Configuration
Let's start the module settings from choosing Default Product SKU ID. In other words Google services. As you can see on the following screen our module supports Google Apps For Business, Google Drive Storage and Google Vault. |
Plan Name allows you to select the method of payment. You can choose:
Note: Since G Suite 1.1.5 module version ANNUAL plan is equivalent to ANNUAL_MONTHLY_PAY in G Suite API. |
Rennewal Type - choose how to renew your plan when the current subscription expires. The available options are:
|
Action On Terminate - here you can decide whether on terminate you want to suspend or cancel customer's services. |
Configurable Options
In order to automatically generate configurable options, simply press button marked on the screen. |
In your WHMCS system press 'Setup' → 'Products/Services' → 'Configurable Options'. Find 'GoogleApps' options on the list. |
Here you can manage and alter added configurable options. |
Provide values for your new option and enter your desired price. 'Save Changes'. |
At your product 'Module Settings' you can fill out the fields for ' Default Number of Seats' and 'Default Max Number of Seats'. Remember, however, that these values will be used only if configurable options are NOT generated. |
From now on you can easily and quickly change value of your product. Remember that you can add more configurable options for other values. |
Admin Area
Let's check your new product in admin area product page. It should look like on the screen below. |
Client Area
This is how the module will look like in the client area. G Suite For WHMCS also allows your customers to quickly access Google account services. |
Update of Existing Customers
You can link existing customers accounts by properly filling in the Custom Fields: 'GoogleApps Domain' and 'GoogleApps PurchaseOrderID'. After your customers order a new subscription, they should insert their primary Google account domain name in the 'GoogleApps Domain' field. |
Tips
1. Our module allows to use Google Apps Reseller account. |
2. Avoid using localhost and Raw IP during the authorization. |
3. Callback URL is fetched from your WHMCS System URL. You can set it in the 'General Settings' of your system. |
4. To change your API access and OAuth, go to product configuration page and add &logout=1&revoke=1 to the URL.Example: http://yourwebsite/whmcs/admin/configproducts.php?action=edit&id=28&logout=1&revoke=1 |
5. If you want to better understand Google Apps Reseller API and our module concept, visit this page |
6. To set up a trial product, go to the module settings, mark 'Trial' checkbox and switch 'Plan Name' to 'FLEXIBLE'. |
Common Problems
1. When you have problems with connection, check whether your SELinux or firewall does not block ports. |
2. It is possible that while authenticating our module you will get an error:
Error: redirect_uri_mismatch If you do, make sure that URLs provided in Google account and your WHMCS system are same. |
3. In case you encounter error similar to the one below, you most probably disabled the output buffering in the PHP configuration.
Notice: ob_clean(): failed to delete buffer. To solve the problem, please set the 'output_buffering' value to 'On' in the php.ini file. |