Files
HexaHost-GameCloud/integrations/whmcs/README.md
smueller 4b20efe4bc
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 10s
CI / Go — node-agent tests (push) Failing after 8s
CI / Go — edge-gateway build (push) Successful in 17s
Implement WHMCS Addon Dashboard with API for stats and integrate billing provider logic
2026-06-26 15:11:29 +02:00

77 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WHMCS integration
This directory contains the future WHMCS provisioning and addon modules for HexaHost GameCloud.
## Overview
In production billing mode (`BILLING_PROVIDER=whmcs`), WHMCS is the **commercial system of record** for customers, orders, invoices, and payments. GameCloud remains the **technical system of record** for servers, nodes, lifecycle, and usage metrics.
Integration is **API-only** — no direct cross-database writes.
## Directory structure
```text
integrations/whmcs/
README.md # This file
modules/
servers/hexagamecloud/ # Provisioning module (Phase WHMCS-A+)
addons/hexagamecloud/ # Global settings, mappings, reconciliation
tests/
Unit/
Integration/
Contract/
Fixtures/
packaging/
build-package.sh
manifest.json
```
## Modules
### Server module (`hexagamecloud`)
Install path on WHMCS: `/modules/servers/hexagamecloud/`
Handles per-service lifecycle:
- CreateAccount, Suspend, Unsuspend, Terminate
- Renew, ChangePackage
- Client area status and SSO
- Usage metrics export
### Addon module (`hexagamecloud`)
Install path: `/modules/addons/hexagamecloud/`
Handles global configuration:
- API credentials and mTLS
- Product / option / addon mappings
- Reconciliation dashboard
- Event polling from GameCloud
## Status
**Phase 9 (WHMCS Phase AB + production DNS)** — implemented.
**Phase D (SSO)** — implemented. See [docs/integrations/whmcs/sso.md](../../docs/integrations/whmcs/sso.md).
**Phase E (Sync & Reconciliation)** — implemented. See [docs/integrations/whmcs/reconciliation.md](../../docs/integrations/whmcs/reconciliation.md).
**Phase F (Usage Billing)** — implemented. See [docs/integrations/whmcs/usage-billing.md](../../docs/integrations/whmcs/usage-billing.md).
**Addon module (Dashboard)** — implemented. See [docs/integrations/whmcs/addon-module.md](../../docs/integrations/whmcs/addon-module.md).
- Server module: `integrations/whmcs/modules/servers/hexagamecloud/`
- Addon module: `integrations/whmcs/modules/addons/hexagamecloud/`
## Documentation (planned)
- `docs/integrations/whmcs/installation.md`
- `docs/integrations/whmcs/configuration.md`
- `docs/integrations/whmcs/security.md`
## Technical module name
Always `hexagamecloud` — do not rename without a migration plan.