Offline Licensing with WooCommerce and C++ Static Library

This guide explains how to set up your software, compiled with the KEYZY C++ Static Library, for offline licensing using WooCommerce.

Offline licensing allows users to run your software on a device without an internet connection. Follow the steps below to complete this process.

Step 1: Obtaining the Host ID

The KEYZY C++ Static Library provides the user with a Host ID, a unique identifier for their device, retrieved by calling the library’s relevant function in your software. The user copies this Host ID.

Step 2: Visiting Your Web Store

The user navigates to your web store with the copied Host ID.

Step 3: Entering the Host ID on the Downloads Page

The user pastes the copied Host ID into the Host ID input field on your web store’s downloads page.

Step 4: Generating the License File

A license file is generated using the provided Host ID. The user downloads this file.

Step 5: Providing the License File to the Software

The user uploads the downloaded license file to your software, compiled with the KEYZY C++ Static Library. Your software verifies the license file, enabling offline use.

Configuring Settings

To ensure users can see the download link and Host ID input field, follow these steps:

  1. Go to the KeyzyWc settings page
  2. Enable the “Show Download Link” and “Show HostID Input Field” options

For details on the C++ Static Library’s Host ID function and other technical information, refer to the WooCommerce Plugin Installation guide.

Additional Tips