Browse all docs

Billing system bridge

Connect WHMCS or IDCSmart: orders, renewals, suspensions and plan changes open accounts and plans automatically, with passwordless login and usage.

What it solves

An IDC's customers order and pay in WHMCS or IDCSmart, but CDN accounts have to be opened by hand in another console. The billing bridge connects the two: when a customer orders, renews, suspends, upgrades or downgrades in the billing system, the CDN side opens the account and plan, suspends, renews or changes the plan automatically. Customers click a button in the billing system to enter the CDN console without a password, and the billing system can show traffic usage.

Two ways to connect, usable together:

ModeWhere the key is createdWho it manages
Reseller on the platformUser console, Reseller → Billing integrationOnly that reseller's customers; provisioning is charged from prepaid balance at wholesale price
Your own control planeAdmin console, System → Billing integrationDirect customers on that control plane

Turning it on

The billing bridge is an official, free plugin of the commercial edition, active once fetched from the plugin store. The community edition does not include it.

  1. On the Billing integration page, download the PHP module (WHMCS, IDCSmart classic, IDCSmart V10). For WHMCS, unpack it into modules/servers/ under the WHMCS root.
  2. Click New key, enter the billing server's outbound IP and your second-factor code, and save the key_id and secret that appear.
  3. In WHMCS, go to System Settings → Servers → Add, choose the CDNCA module, enter the API address, key_id and secret, and click Test connection.

Main settings

SettingWhat it does
IP allowlistThe billing server's outbound IPs, 1 to 32 entries, no /0
ExpiryOptional; empty means never
RotateThe old secret stops working at once; update it in the billing system
RevokePermanent; the billing system loses access immediately, existing customers and subscriptions stay
Integration logOne line per call, kept 90 days

Typical uses

  • An IDC sells CDN as a product in WHMCS: accounts open on payment and suspend when not renewed.
  • A reseller on the platform who also runs their own control plane: configure two "servers" in WHMCS, one per key.

Limits and notes

  • The secret is shown once at creation; if lost, rotate it.
  • Once the module is revoked every bridge call is refused; customers and subscriptions already opened stay.
  • The reseller mode needs the platform administrator to enable the plugin and the user to be an active reseller.