Billing integration
Billing plugins connect a storefront to the controller: a customer pays, the plugin calls the API to create an instance, and returns console access.
Plugins
| Plugin | Target | Directory |
|---|---|---|
QuickIDC-IDCSmart | IDCSmart | plugins/QuickIDC-IDCSmart |
LxdServer-IDCSmart | IDCSmart (LXD) | plugins/LxdServer-IDCSmart |
QuickIDC-SwapIDC | SwapIDC | plugins/QuickIDC-SwapIDC |
Easypanel-SwapIDC | EasyPanel | plugins/Easypanel-SwapIDC |
VistaPanel-SwapIDC | VistaPanel | plugins/VistaPanel-SwapIDC |
XiaoHei
QuickIDC-XiaoHei is not shipped. The plugin directory does not exist; treat it as planned.
Integration model
text
Billing system → PHP module → CloudHost REST API → virtualization platformRequired:
- Controller URL (HTTPS).
- Bearer token (
System settings → Tokenorquickidc conf token show). - Host identifier (
hs_name).
Common operations
| Action | Controller API |
|---|---|
| Create | POST /api/client/create/:hs_name |
| Renew | PUT /api/client/update/:hs_name/:uuid |
| Suspend | POST /api/client/powers/:hs_name/:uuid |
| Unsuspend | same, start |
| Delete | DELETE /api/client/delete/:hs_name/:uuid |
| Console | GET /api/client/templogin |
Security
- HTTPS only.
- Rotate tokens and update every plugin afterwards.
- Never expose the plugin directory to the public.
- Restrict source IPs at the network layer.