Sell plans from WHMCS or WordPress
Connect your own billing system so a customer's account is created and their plan starts as soon as they pay you.
On this page
If you already bill your customers in WHMCS or in WooCommerce, you can sell plans there. When a customer pays you, their account is created and the plan starts by itself.
How the money works
- Your customer pays you, at your price, in your own system.
- Starting or renewing a plan takes its cost from your balance: the list price less your tier discount. See Tiers and discounts.
- If your balance is too low, the plan waits and starts by itself once you add funds. See Add funds to your balance.
- A payment is never charged to your balance twice. Each one carries your invoice or order number.
Create your API key
- In the partner portal, click Integrations.
- Click Create API key.
- Copy the key straight away. It is shown only once.
The page also shows the API address. You need both in the next steps. Create a new key replaces the key; the old one stops working at once.
WHMCS
- On Integrations, click Download WHMCS module and unzip it into your WHMCS folder. The files belong in
modules/servers/chatilopartner. - In WHMCS, add a server with the module Partner Plan Selling. Enter the API address as Hostname and your key as Password. Click Test Connection.
- Create a product, choose the module on the Module Settings tab, and pick the Plan.
- Set the product to be set up automatically when the first payment is received.
| WHMCS action | What happens |
|---|---|
| Create | The customer is added (or found by email) and the plan starts |
| Renew | The plan is extended when a renewal invoice is paid |
| Suspend, Unsuspend | Access is blocked or restored |
| Terminate | The account is suspended; its data is kept |
| Change Package | The new plan starts for one billing period |
| Change Password | The owner's password is set |
| Open control panel | The client is signed in with a one-time link |
Monthly, quarterly and semi-annual billing buy 1, 3 or 6 months. Annual, biennial and triennial billing buy 1, 2 or 3 years.
WordPress with WooCommerce
- On Integrations, click Download WordPress plugin.
- In WordPress, open Plugins, Add New, Upload Plugin, and install and activate it. WooCommerce must be active.
- Open WooCommerce, then Plan selling. Enter the API address and the key, and save. The page shows your tier, your balance and what each plan costs you.
- Edit a product. In the General tab choose Plan to start and whether one payment buys a month or a year.
When an order is paid, the account is created and the plan starts. The customer is emailed their sign-in address, and sees Open your control panel under My account. With WooCommerce Subscriptions, each renewal order extends the plan. The shortcode [plan_table] lists your plan products on any page.
If a plan cannot start, the order gets a note with the reason and the plugin tries again every hour. You can also choose Plan selling: create account and start plan from the order's actions.
Refunds and cancellations
Nothing is undone automatically. A plan that has started is not refunded to your balance. Suspend the customer from WHMCS or from your partner portal if you need to.
Troubleshooting
- "The API key is missing or wrong": create a new key and enter it again.
- "Add funds to your partner balance first": your balance has never been topped up. Add funds, then run the action again.
- The plan is waiting: your balance was too low. It starts by itself when you add funds.
- "That email address already has an account that is not one of your customers": the customer must use a different email address.