REST API v1 · Developers

Install the BotGG module for WHMCS, Blesta or Paymenter

The modules connect your billing panel to BotGG through the Hosting Protocol. They are open source (MIT, no ionCube), so you can read everything that runs inside your panel. Each zip contains a README with the screens of its platform; this page is the overview.

Developer docs
On this page

Before you start

  • BotGG is in your Discord server and you can manage it in the console.
  • Your billing site is reachable over HTTPS on a public address (BotGG refuses plain HTTP and private addresses).
  • The platform’s cron job runs: the module sends events from an outbox that the cron (plus a one-minute fast path) empties, so a slow network never blocks checkout or admin actions.
  • You are an administrator of the billing panel.
  1. In the console, open your server, enable Hosting and start the Setup tab.
  2. Pick your platform and enter your billing site address. BotGG fills in the bridge and callback addresses below.
  3. Download the module zip from the Setup tab (the version is shown next to the button).
  4. Create the connection: the console shows the connection key once. Copy it now; you can rotate it later.
Default addresses on your billing site
PlatformBridgeSign-in callback
WHMCS/modules/addons/botgg/bridge.php/index.php?m=botgg&action=callback
Blesta/plugin/botgg/bridge//plugin/botgg/connect/callback/
Paymenter/extensions/botgg/bridge/extensions/botgg/callback

WHMCS

For WHMCS 8 on PHP 8.1 or newer. The module is an addon module named botgg.

  1. Upload the contents of the zip so that the module lands in modules/addons/botgg/.
  2. In the WHMCS admin area, open the addon modules list, activate BotGG and give your admin roles access to it.
  3. Open the BotGG addon page, paste the connection key and save. Settings are stored encrypted by WHMCS.
  4. Press Test connection in the console. Both directions turn green when the handshake succeeds.
  5. Optional: enable “Sign in with Discord” and choose the two-factor rule (refuse keeps password + 2FA for accounts that use it).

The module adds Connect Discord to the client area and, when enabled, a Sign in with Discord button to the login page, without theme edits. Power buttons use the identifier stored by your Pterodactyl / Pelican server module and a panel API key you enter in the module settings; the key never leaves WHMCS.

Blesta

For Blesta 5. The module is a plugin named botgg.

  1. Upload the contents of the zip so that the plugin lands in plugins/botgg/.
  2. In the Blesta admin area, open the available plugins, install BotGG and open its settings.
  3. Paste the connection key and save.
  4. Press Test connection in the console.

Two-way ticket sync needs Blesta’s Support Manager plugin. Without it the module simply doesn’t announce the ticket capabilities and the console hides ticket sync.

Paymenter

For Paymenter v1. The module is an extension named botgg.

  1. Copy the extension from the zip into Paymenter’s extensions folder, as described in the README inside the zip.
  2. In the Paymenter admin area, enable the BotGG extension and open its settings.
  3. Paste the connection key and save.
  4. Press Test connection in the console.

Features Paymenter doesn’t offer (for example promo codes on some versions) are left out of ping.capabilities, and the console hides them.

A custom or in-house panel

Choose Custom billing system in the Setup tab and enter your own bridge and callback addresses (they must stay on your billing site’s origin). Then implement the Hosting Protocol: signed events, the account link flow, the handshake and the required bridge ops.

Run the protocol test-suite against your bridge before going live; it checks every op and every event shape:

Protocol test-suite (BotGG monorepo)
npm run hosting:protocol-test -- --url https://billing.example.com/<bridge path> --key <connection key>

After the install

  • Roles tab: map products and product groups (picked from your catalog) to Discord roles, then Sync now.
  • Notifications, Tickets, Status and Sales tabs: staff channels, ticket sync, status channel and monitors, restock alerts and promo codes.
  • Customers connect from your client area or with /hosting link in Discord; their roles follow right away.

Frequently asked questions

Where do I download the module?

In the console: your server → Hosting → Setup. The zip there always matches the current protocol version.

Does the module slow down checkout?

No. Hooks only write to a local outbox; events are sent by the cron and a short background step with a 3-second timeout and retries for up to 24 hours.

Can I read the module code?

Yes. The modules are MIT-licensed, unencoded PHP.

Ready to level up your server?

Add BotGG for free, then switch features on in the web console.