- Package
- vpn_dashboard_fossbilling.zip
- Install in
modules/Servicevpndashboard- Provider key
fossbilling
01
Install the files
- Obtain the package matched to your dashboard version before installing.
- Extract it and copy Servicevpndashboard into the modules directory in your FOSSBilling installation.
- Enable VPN Dashboard Product in FOSSBilling.
The package and dashboard must support the same billing and customer sign-in contract.
02
Add the dashboard connection
- In VPN Dashboard, open Settings → Billing integrations, save a connection for fossbilling, then generate its API token and SSO secret. Use a separate webhook signing secret.
- Open the extension settings and enter the HTTPS address of your dashboard.
- Enter the billing API token, webhook signing secret and SSO signing secret from the matching billing connection in VPN Dashboard.
- Keep the provider key as fossbilling, use Test connection and add the FOSSBilling server public IP to the billing API allow-list.
Use fossbilling for the module, billing connection and customer sign-in settings.
03
Configure the VPN product
- Create or edit a product, select the VPN Dashboard product type and save its module configuration.
- Set the fixed profile limit, protocols and shared or dedicated server access. These values are saved with the order.
- Set monthly traffic, WireGuard key rotation, support tier or dedicated server count only when the product needs them. Renewal sends the saved settings again.
04
Add customer sign-in
FOSSBilling provides a short-lived signed link from the order to the customer VPN area. The link expires after five minutes and can be used once. The customer must already have a provisioned billing account and an active service; no separate dashboard password is issued.
Keep the SSO signing secret private. Change it in both systems if it is ever exposed.
Connection and product settings
Connection settings apply to the module. Product settings apply to each plan.
Connection settings7 fields
Product settings7 fields
Where the settings are stored
FOSSBilling and the dashboard keep separate responsibilities.
- Product type
- Connects a FOSSBilling product to the Servicevpndashboard module. The product configuration supplies the VPN limits copied to new orders.
- Order
- Identifies the service. The module uses fossbilling-order-{orderId} so renewals and later changes continue to update the same VPN service.
- Module service
- Saves the VPN Dashboard service ID, current status and VPN settings separately from the order.
What FOSSBilling does automatically
When the service changes in FOSSBilling, the module makes the same change in VPN Dashboard.
- Create then activate
- Create saves the module service as pending. Activate creates VPN access and saves the service state.
- Renew
- Updates the existing service as active using the order’s stored product configuration.
- Suspend or unsuspend
- Changes VPN access and updates the local module service status.
- Cancel
- Cancels VPN access. Uncancel restores the same VPN service as active.
- Delete
- Cancels access before removing the service from the module.
Test a FOSSBilling order before launch
Test the exact platform version and product settings you intend to use.
- Use Test connection in the module settings before assigning the product type to a live product.
- Activate a paid test order and confirm FOSSBilling changes the service from pending to active.
- Renew the order and confirm the same fossbilling-order-{orderId} service is updated.
- Test suspend, unsuspend, cancel and uncancel while watching both the FOSSBilling service status and VPN access.
- Delete a test order and confirm the module cancels VPN access before removing the service.
- Open a fresh customer sign-in link and verify that it reaches the correct account after activation.
When an account change does not reach VPN Dashboard
Start with the order or service that should have sent the change.
- Activation stops before contacting VPN Dashboard
- Confirm the order has a valid client, product and customer email. The module checks all three before creating access.
- Renewal restores old settings
- Check the configuration stored on the order. Renewal uses the order service configuration rather than reading unsaved product edits.
- Test connection times out
- Check the dashboard URL and IP allow-list, then raise Connection timeout or Request timeout within their documented limits only if the network is genuinely slow.
FOSSBilling notes
- The module links each service to its unchanging FOSSBilling order ID.
- The module requires a valid customer email before it can create access.
- Connection timeout controls only the connection phase; request timeout caps the complete API call.
- Credentials belong to this provider connection. Do not reuse another platform’s API token or signing secrets.