38 lines
3.1 KiB
Markdown
38 lines
3.1 KiB
Markdown
<p align="center"><img src="assets/logo.png" alt="Interweb" width="280"></p>
|
|
|
|
# Interweb Mozambique WHMCS VPS module
|
|
|
|
<!-- badges:start -->
|
|
[](https://git.interweb.co.mz/interweb-mz/whmcs-vps-module/releases) [](LICENSE)
|
|
<!-- badges:end -->
|
|
|
|
[Português](README-pt.md)
|
|
|
|
> API: `https://api.interweb.co.mz`, built in. Create your key in the [API Center](https://www.meu.interweb.co.mz/api-center.php) of Meu Interweb. Documentation: https://docs.interweb.co.mz
|
|
|
|
For resellers who sell VPS in their own WHMCS. When your customer pays, the module buys the VPS in our account through the API, with your account credit. Your customer manages the server in the client area of your WHMCS.
|
|
|
|
## Install
|
|
1. Download `interweb_mz_vps.zip` from the [latest release](https://git.interweb.co.mz/interweb-mz/whmcs-vps-module/releases/latest) and unzip it in the main folder of your WHMCS (the one with `configuration.php`). The files go straight to `modules/servers/interweb_mz_vps`. Do not use "Download ZIP" on the code page: it adds an extra folder and WHMCS will not find the module.
|
|
2. Setup > Servers > Add server: module "VPS Interweb Mozambique (API)", hostname `api.interweb.co.mz` (for example `api.interweb.co.mz`), password = API key. In the username you can put `sandbox` or `production`, so the API refuses a key of the wrong mode. When you save the server, the module checks the key and shows the result at the top of the Servers page.
|
|
3. In the product, Module tab: choose the brand plan and the cycle.
|
|
4. System and data center: create configurable options with the same names as the brand plan, or in the `id|name` format (option and choice), with the ids from `GET /v1/catalog/products/{id}`.
|
|
5. Key permissions: `catalog:read`, `billing:purchase`, `vps:read`, `vps:write`, `vps:reinstall`, `hosting:read` and `services:cancel`. Use a `sandbox_` key to test.
|
|
|
|
## What it does
|
|
Create, start, stop, restart, backups, reinstall with a backup first, extra IP and disk (admin buttons), the IP on the WHMCS service and a simple client area.
|
|
|
|
|
|
## Languages
|
|
The code is in English. The texts live in `lang/english.php` and `lang/portuguese.php`. In the admin area they follow the admin's language and in the client area the client's language: any WHMCS language whose name starts with "portuguese" (portuguese-pt, portuguese-br...) uses Portuguese, every other language uses English. The "Message language" option of the product can force English or Portuguese for the module messages; "Automatic" is the default.
|
|
|
|
## Good to know
|
|
- The API does not suspend servers: on suspend the module stops the server; on unsuspend it starts it.
|
|
- Terminate records the cancellation for the end of the paid period, never right away.
|
|
- The root password of the delivery is emailed to your account. After a reinstall, the new password is in the service details in WHMCS.
|
|
- Extra IP and disk are bought only by the admin, because they are paid with your credit.
|
|
- Product settings saved with version 1.0.0 keep working.
|
|
|
|
---
|
|
|
|
Maintained by RLX Holdings.
|