← FOSSBilling integration

Customer billing · Setup guide

Set up FOSSBilling

Enable the product module, add the connection settings and configure the VPN product type.

Ask for the matching package →
Package
vpn_dashboard_fossbilling.zip
Install in
modules/Servicevpndashboard
Provider key
fossbilling

01

Install the files

  1. Obtain the package matched to your dashboard version before installing.
  2. Extract it and copy Servicevpndashboard into the modules directory in your FOSSBilling installation.
  3. 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

  1. 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.
  2. Open the extension settings and enter the HTTPS address of your dashboard.
  3. Enter the billing API token, webhook signing secret and SSO signing secret from the matching billing connection in VPN Dashboard.
  4. 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

  1. Create or edit a product, select the VPN Dashboard product type and save its module configuration.
  2. Set the fixed profile limit, protocols and shared or dedicated server access. These values are saved with the order.
  3. 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
Dashboard URLRequired HTTPS address
The address of your VPN Dashboard installation, without an API path.
Billing API tokenRequired secret
Copy the token from the matching billing connection in VPN Dashboard.
SSO signing secretRequired, at least 32 characters
Signs the short-lived link that takes a customer from their billing account to the VPN area.
Webhook signing secretBlank or at least 32 characters
Signs write requests from the module. Leave it blank only when the billing server IP is enforced through the API allow-list.
Provider keyfossbilling
Must match the provider key on the billing connection and customer sign-in settings.
Connection timeout5 seconds by default; 1 to 30
How long FOSSBilling waits to establish the connection.
Request timeout15 seconds by default; at least the connection timeout, up to 60
The total time FOSSBilling allows for an API request.
Product settings7 fields
Profile limit50 by default; 1 to 10,000
The number of profiles included with this product.
Server accessShared or dedicated; shared by default
Controls whether the service uses your shared VPN server pool or waits for dedicated capacity.
Dedicated servers1 by default
Used only when Server access is set to dedicated.
VPN protocolsBoth, WireGuard only or OpenVPN only
Sets which profile types the customer can create. Both protocols are enabled by default.
Monthly traffic (GB)Optional
Optional allowance in GB. Blank omits the limit and keeps any existing allowance; configured dashboard product mappings take precedence.
Profile rotation (days)Optional
The plan’s WireGuard key rotation interval. Customers must import the new configuration; OpenVPN credentials are not rotated by this setting.
Support tierstandard by default
A lowercase plan key sent with the service. Change it only when matching tiers exist in your dashboard.

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.

  1. Use Test connection in the module settings before assigning the product type to a live product.
  2. Activate a paid test order and confirm FOSSBilling changes the service from pending to active.
  3. Renew the order and confirm the same fossbilling-order-{orderId} service is updated.
  4. Test suspend, unsuspend, cancel and uncancel while watching both the FOSSBilling service status and VPN access.
  5. Delete a test order and confirm the module cancels VPN access before removing the service.
  6. 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.