Graphite can show the subscription of each server from Paymenter or WHMCS: the status, plan, price and next due date, with a Manage service button.
- Servers with an unpaid invoice get an alert with a Pay invoice button.
- The server overview shows a small label on servers that are unpaid, overdue or due soon.
- Only the server owner and admins see billing details, never subusers.
How servers are matched#
Servers are matched on their external ID. The Pterodactyl modules of Paymenter and WHMCS set it to the service ID when they create a server, so servers made by your billing system work right away.
For other servers, set the External Identifier to the service ID on the Details page of the server in the admin area.
Paymenter#
- In Paymenter, create an API key with view access to services, products and invoices.
- In Graphite, open the Billing tab and pick Paymenter.
- Fill in your Paymenter URL and the API key.
- Click Test connection and Save.
WHMCS#
- In WHMCS, go to System Settings → API Credentials and create credentials for an API role that may use
GetClientsProducts,GetClientsDetails,GetInvoicesandGetInvoice. - Under System Settings → General Settings → Security, add the IP address of your panel to API IP Access Restriction.
- In Graphite, open the Billing tab and pick WHMCS.
- Fill in your WHMCS URL, the identifier and the secret.
- Click Test connection and Save.
Good to know#
- The API key and secret are stored encrypted with the app key of your panel and never sent to the browser.
- Billing details are cached for 5 minutes, so a paid invoice can take up to 5 minutes to disappear.
- When the billing system cannot be reached, Graphite hides billing for a minute and tries again.
- Add the Billing block to the server dashboard in the Server dashboard tab if your layout does not have it yet.