82 linhas
4,2 KiB
Text
82 linhas
4,2 KiB
Text
=== Interweb Mozambique Reseller for WooCommerce ===
|
|
Tags: woocommerce, domain reseller, hosting reseller, vps reseller, sms
|
|
Requires at least: 6.0
|
|
Tested up to: 7.1
|
|
Requires PHP: 7.4
|
|
Stable tag: 1.0.1
|
|
License: MIT
|
|
License URI: https://opensource.org/licenses/MIT
|
|
WC requires at least: 7.0
|
|
WC tested up to: 11.3
|
|
|
|
Sell Interweb Mozambique domains, hosting, servers and SMS credits in WooCommerce. Paid orders go through the API, with renewals and customer emails.
|
|
|
|
== Description ==
|
|
|
|
The plugin works with the Interweb Mozambique API, with your API key. You do not need anything else on the server.
|
|
|
|
* 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-Key per 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 Interweb Mozambique Domains, its Register button puts the name in your cart.
|
|
|
|
You need WooCommerce, an Interweb Mozambique account and an API key. Each service is paid with the credit of your Interweb Mozambique account.
|
|
|
|
== External services ==
|
|
|
|
This plugin connects to the Interweb Mozambique API (https://api.interweb.co.mz), run by Interweb Mozambique. It sends nothing before you save an API key. After that, it sends:
|
|
|
|
* The API key, in every request, and a key check (GET /v1/token) when you save it.
|
|
* Catalog and prices: plans, extensions and SMS credit prices, to set up products and show your API price.
|
|
* Domain availability: the name your customer types on the product page.
|
|
* Paid orders: the domain, the transfer code (for transfers), the plan, the cycle and the options, to register, transfer or buy the service, and the quantity of SMS credits. Your customer's name, email, phone and address are not sent; the services are created in your Interweb Mozambique account.
|
|
* Follow-up: the state of each service, renewals and the payment of renewal invoices with your credit.
|
|
|
|
The emails to your customers are sent by your WordPress, not by the API.
|
|
|
|
Terms and conditions: https://www.interweb.co.mz/en/terms-conditions
|
|
Privacy policy: https://www.interweb.co.mz/en/privacy-policy
|
|
|
|
== Installation ==
|
|
|
|
1. Upload the ZIP in Plugins > Add New > Upload Plugin, or the plugin folder to wp-content/plugins.
|
|
2. Activate it and open Settings > Interweb Mozambique Reseller.
|
|
3. Paste your API key and save. The plugin checks it with the API and tells you if a permission is missing.
|
|
4. Create a product and choose what it sells in the Fulfilment tab.
|
|
|
|
== Frequently Asked Questions ==
|
|
|
|
= Where do I get the API key? =
|
|
|
|
In Meu Interweb, on the API page. Start with a sandbox_ key: it simulates every change and spends nothing.
|
|
|
|
= What happens if I run out of Interweb Mozambique credit? =
|
|
|
|
The order waits and the plugin tries again every hour. You get an alert.
|
|
|
|
= Does it work with the other Interweb Mozambique plugins? =
|
|
|
|
Yes. They can all be active at the same time.
|
|
|
|
= Can I keep the key out of the database? =
|
|
|
|
Yes. Define INTERWEB_MZ_RESELLER_API_KEY in wp-config.php.
|
|
|
|
== Screenshots ==
|
|
|
|
1. Fulfilment settings: paid orders, renewals and the My services page.
|
|
2. The Fulfilment tab of a WooCommerce product.
|
|
|
|
== Changelog ==
|
|
|
|
= 1.0.1 =
|
|
* Help link at the top of the settings page, to the step-by-step guide.
|
|
* MIT licence and author links in the plugin header, an External services section in this readme, and output escaping fixes.
|
|
|
|
= 1.0.0 =
|
|
* First version.
|