← WooCommerce integration

Customer billing · Setup guide

Set up WooCommerce

Install the WordPress plugin and connect products, variations and Woo Subscriptions events.

Ask for the matching package →
Package
vpn_dashboard_woocommerce.zip
Install in
wp-content/plugins/vpn-dashboard
Provider key
woocommerce

01

Install the files

  1. Obtain the package matched to your dashboard version before installing.
  2. Upload the plugin in WordPress, or copy vpn-dashboard into wp-content/plugins.
  3. Activate VPN Dashboard for WooCommerce and open WooCommerce, VPN Dashboard.

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 woocommerce, then generate its API token and SSO secret. Use a separate webhook signing secret.
  2. Enter the HTTPS address of your dashboard.
  3. Enter the billing API token, SSO signing secret and webhook signing secret from the matching billing connection in VPN Dashboard.
  4. Keep the provider key as woocommerce, add the WordPress server public IP to the billing API allow-list and use Test connection.

Use woocommerce for the module, billing connection and customer sign-in settings.

03

Configure the VPN product

  1. Edit a simple or variable product, open Product data and enable VPN Dashboard product.
  2. Set Profiles per unit and choose shared or dedicated server access. Each variation can keep or replace the parent product’s values.
  3. For recurring access, use an official Woo Subscriptions product. The integration keeps the same VPN service through renewals instead of creating another one.

04

Add customer sign-in

When enabled, WooCommerce My Account shows a VPN service link that opens the customer VPN area through a signed URL. 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 settings6 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 keywoocommerce
Must match the provider key on the billing connection and customer sign-in settings.
Customer areaShown by default
Controls whether VPN Dashboard appears in WooCommerce My Account.
Product settings5 fields
VPN Dashboard productOn or off
Enable it only on products that should create VPN access.
Profiles per unit1 to 10,000
Multiplied by the WooCommerce quantity to set the service’s profile limit. The total must not exceed 10,000.
Server accessShared or dedicated; shared by default
Dedicated services wait for dedicated VPN server capacity.
Variation profiles per unitOptional override
A variation can replace the parent product profile quantity.
Variation server accessParent, shared or dedicated
A variation can inherit or replace the parent product server-access setting.

Where the settings are stored

WooCommerce and the dashboard keep separate responsibilities.

Product or variation
Marks an item as a VPN product and sets profiles per unit. A variation can replace its parent values.
Order line item
Represents one purchased VPN product. For one-off orders, the module saves the VPN Dashboard service ID with the item and multiplies profiles per unit by quantity.
Subscription item
Represents recurring access when Woo Subscriptions is active. It keeps one VPN Dashboard service across its initial order, renewals and switches.

What WooCommerce does automatically

When the service changes in WooCommerce, the module makes the same change in VPN Dashboard.

Order processing or completed
Creates or updates one-off access. Orders containing a subscription are left to the subscription hooks to avoid duplicate services.
Order on-hold or failed
Suspends one-off access while payment is unresolved.
Order cancelled or refunded
Cancels one-off access for the affected line items.
Subscription active or on-hold
Creates or restores access when active, and suspends it when on-hold.
Subscription cancelled or expired
Cancels recurring access. A pending-cancel subscription remains active until Woo Subscriptions changes it to cancelled or expired.
Completed subscription switch
Reconciles changed products, quantities and variations against the existing subscription service.

Test a WooCommerce order before launch

Test the exact platform version and product settings you intend to use.

  1. Buy a one-off VPN product and confirm its processing order creates one service per eligible line item.
  2. Buy more than one unit and confirm the profile limit equals Profiles per unit multiplied by the ordered quantity.
  3. Set different values on a variation and confirm they are used instead of the parent product’s values.
  4. With Woo Subscriptions, test active, on-hold and active again against the same subscription service.
  5. Cancel a test subscription and confirm access remains during pending-cancel, then ends when Woo marks it cancelled or expired.
  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.

Order creates no access
Check that VPN Dashboard product is enabled on the purchased product or variation and that the order reached processing or completed.
Subscription creates duplicate access
Confirm Woo Subscriptions is active and the order contains a recognised subscription; subscription orders are deliberately handled by subscription hooks.
Account setup failed
Read the order note, correct the connection or product value, then select Retry VPN Dashboard provisioning from the order actions.

WooCommerce notes

  • Quantity multiplies Profiles per unit. The total per order or subscription item must not exceed 10,000.
  • Automatic renewals, suspensions and cancellations require Woo Subscriptions.
  • A failed account setup is shown in the order notes and can be tried again from the WooCommerce order actions.
  • Credentials belong to this provider connection. Do not reuse another platform’s API token or signing secrets.