4.3 KiB
4.3 KiB

Interweb Angola WooCommerce reseller plugin
Step-by-step guide in our Knowledgebase.
API:
https://api.interweb.ao, built in. Create your key in the API Center of Meu Interweb. Documentation: https://docs.interweb.ao
WooCommerce plugin for resellers. It uses only our public API, with your account key. Works in Portuguese and English.
What it does
- Sell domains (registration and transfer), hosting, reseller hosting, radio, VPS, cloud and dedicated servers, and SMS credits as WooCommerce products. Each product has a Fulfilment tab: what the API does, the plan, the cycle and the options.
- The product page asks for the domain (and the transfer code). A name that is not free never reaches the cart.
- When the order is paid, it runs by itself in the background: registers, transfers, buys the plan or the credits, follows the result and marks the order completed.
- A retry never buys twice (an
Idempotency-Keyper order item). Without credit, the order waits and tries again every hour, and you get an alert. - "My services" in the customer account: state, expiry, Renew and the control panel of the hosting.
- Renewals: the customer pays a renewal order; the plugin renews the domain or pays the renewal invoice of the plan with your credit.
- Emails to your customer with your site name: service ready, renewal reminders (30, 7 and 1 days before, you choose), renewed and state changes.
- Your API price next to the product price, with a warning when you sell below it.
- With the Domains plugin of the same brand, its Register button puts the name in your cart.
Install
- Download the ZIP of the latest release and upload it in Plugins > Add New > Upload Plugin (or copy the
interweb-ao-resellerfolder towp-content/plugins/). - Activate the plugin and open Settings > Interweb Angola Reseller.
- Paste the API key and save. The key is checked with the API right away.
Languages
- The code is in English. Translations are gettext files in
interweb-ao-reseller/languages(.pot, and.powith.moforpt_PT,pt_BRandpt_AO). - "Same as WordPress" follows the WordPress language; "Português" or "English" fixes the plugin language.
- After changing texts:
python3 -I tools/i18n-check.py --pot, translate in the.pofiles,python3 -I tools/build-mo.pyandpython3 -I tools/i18n-check.py.
The key
- Create it in the API Center of Meu Interweb, with
catalog:read,billing:read,billing:purchase,billing:payand the permissions of what you sell:domains:readanddomains:write,hosting:readandhosting:write,vps:write,sms:readandsms:write(hosting:loginfor the control panel link). - When you save it, the plugin asks the API about it: a wrong, revoked or expired key is not saved, and missing permissions or a Sandbox key are said right away.
- It is stored encrypted (AES-256-GCM, with the WordPress security keys) and never shown again. You can define
INTERWEB_AO_RESELLER_API_KEYinwp-config.phpinstead.
Good to know
- Everything is paid with the credit of your account. Keep enough for the orders you expect.
- Domains are registered with the contact details of your account (the API has no field for the contact of the end customer). Hosting takes the customer domain only when it is in your account; otherwise it starts with a temporary address.
- SMS credits go to your SMS balance; the plugin counts what each customer bought.
- A Sandbox key simulates every order: nothing is registered, created or charged.
- Optional constants in
wp-config.php:INTERWEB_AO_RESELLER_API_KEY,INTERWEB_AO_RESELLER_ENCRYPTION_KEY.
Requirements: WordPress 6.0 or newer, PHP 7.4 to 8.5, OpenSSL extension, WooCommerce 7.0 or newer.
Maintained by RLX Holdings.