You don't have javascript enabled. Good luck with that. KrishaStore

Subscribe to our newsletter and enjoy up to 15% OFF on every product and exclusive offers.

LicenseCommerce

This guide explains the LicenseCommerce plugin. Please review it before installation. For support, contact [email protected].

Introduction

LicenseCommerce is a powerful and user-friendly WordPress plugin designed to help website owners efficiently manage software licenses and customer access from a single platform. Whether you are selling digital products, software applications, or subscription-based services, the plugin provides a streamlined solution to generate, distribute, and track license keys with ease. It eliminates the need for manual license handling and reduces the chances of errors, making it an essential tool for businesses of all sizes.

Built with flexibility in mind, LicenseCommerce seamlessly integrates with your existing WordPress setup and supports automated workflows for license generation and delivery. The plugin allows you to create unique license keys for each purchase, assign them to customers, and check their status (active, inactive, and expired) directly from the admin dashboard. This ensures better control over your product distribution and enhances overall security.

LicenseCommerce also includes features for monitoring and validating license usage, helping you prevent unauthorized access and misuse of your digital products. With built-in license verification capabilities, you can connect your applications or services to validate licenses in real time. This not only protects your business but also builds trust with your customers by ensuring a secure and reliable licensing system.

Key Features
  • Seamless WooCommerce Integration: LicenseCommerce integrates smoothly with WooCommerce, allowing you to automatically generate and assign license keys when customers purchase your products. This eliminates manual work and ensures a hassle-free buying experience for your users. You can easily map licenses to products and manage everything directly from your WordPress dashboard.
  • Stripe Subscription Sync: With built-in Stripe subscription synchronization, the plugin keeps license statuses aligned with your customers' subscription lifecycle. When a subscription is activated, renewed, or canceled, the corresponding license is automatically updated. This ensures accurate access control without requiring manual intervention.
  • REST API Integration: LicenseCommerce provides a robust REST API that enables you to connect your external applications or services for real-time license validation and management. This makes it easy to verify licenses, fetch data, and automate workflows across platforms. It's ideal for developers who need flexible and scalable integration options.
  • Plug-and-Play Developer SDK: The plugin includes a ready-to-use developer SDK that simplifies license validation implementation in your applications. With minimal setup, you can integrate licensing functionality into your software without building everything from scratch. This saves development time and ensures a consistent and secure licensing experience.

System Requirements

Before installing LicenseCommerce, please ensure the following requirements are met:

  1. WordPress version 6.8 or higher
  2. PHP version 8.1 or higher
  3. MySQL version 5.8 or later
  4. Browser: Google Chrome, Firefox, Safari, Microsoft Edge

Installation

Pre-requisites

Before using the LicenseCommerce plugin, ensure that the WooCommerce plugin is already installed and activated on your WordPress website. LicenseCommerce works as an extension of the WooCommerce plugin and cannot function independently.

License Activation Process

Once the admin enters a valid license key, the user can access and use all the features of the LicenseCommerce plugin.

When you buy the LicenseCommerce plugin from the KrishaStore website, you will receive your license key by email from Freemius. This license key is required to activate LicenseCommerce features within your WordPress admin panel.

The LicenseCommerce activation process helps you set up the dashboard and connect your software with the licensing system. After purchasing from the KrishaStore website, you will receive a LicenseFlow.zip file that contains all the required components to get started.

This process involves two main steps:

  1. Installing the LicenseCommerce Dashboard (WordPress plugin)
  2. Integrating your software with the License SDK

By completing these steps, you will be able to sell your software, manage license keys, validate users, and automate subscription billing smoothly.

What's Inside the LicenseCommerce.zip File?

After extracting the LicenseCommerce.zip file, you will find the following files:

  1. license-commerce.zip → WordPress plugin to install on your site
  2. licenseflow-sdk.zip → SDK for software integration

Step-by-Step Guide: Install LicenseCommerce Dashboard

Step 1: Extract the ZIP File

  1. Locate the LicenseCommerce.zip file downloaded from KrishaStore
  2. Extract (unzip) the file
  3. Open the extracted folder

Step 2: Prepare the Plugin File

  1. Find the file: license-commerce.zip
  2. Move it outside the extracted folder (optional but recommended for easy access)

Step 3: Install the Plugin in WordPress

  1. Log in to your WordPress Admin Dashboard
  2. Go to Plugins → Add New → Upload Plugin
  3. Click Choose File and select license-commerce.zip
  4. Click Install Now
  5. After installation, click Activate

Step 4: Activate License Key

  1. Enter the License Key received via email from Freemius
  2. Click to verify/activate the license

Software Integration with the License SDK

After setting up the LicenseCommerce Dashboard, the next step is to integrate your software with the LicenseCommerce SDK. This integration allows your product to communicate with the LicenseCommerce system for license validation, subscription handling, and feature control.

The SDK is provided inside the licenseflow-sdk.zip file, which you received along with the LicenseCommerce package.

Step 1: Extract the SDK Files

  1. Locate the file: licenseflow-sdk.zip
  2. Extract (unzip) the file
  3. Open the extracted folder

After extraction, you will find the following:

  • src folder: Contains the main SDK source code
  • composer-sample.json: Sample configuration for Composer setup
  • INTEGRATION.md: Step-by-step integration guide with examples
  • LICENSE: Legal terms for using the SDK

Understanding the SDK Files

1. composer-sample.json (Composer Setup)

This file helps you integrate the SDK using Composer, which is a dependency manager for PHP.

When to Use Composer

  • If your plugin or software already uses Composer
  • If you want a clean and scalable way to manage dependencies

How to Set It Up

  1. Copy the composer-sample.json file into your project root
  2. Rename it to: composer.json
  3. Open the file and update: name (your project/package name), description, autoload paths (adjust based on your structure), and repository URL (if applicable)
  4. Run the following command in your project directory: composer install

The SDK will be automatically installed and loaded. You can now use it in your project via Composer's autoload system.

If You Are Not Using Composer

  • Add the file manually and rename it to composer.json
  • Install Composer locally
  • Alternatively, you can directly include the src folder in your project

2. INTEGRATION.md (Integration Guide)

This is the most important file for developers. It provides detailed instructions on how to integrate the LicenseCommerce SDK into your software.

What It Includes

  • Step-by-step integration instructions
  • Code examples for initializing the SDK, connecting to the LicenseCommerce API, validating license keys, and handling subscription status
  • Best practices for secure implementation

How to Use It

  1. Open the INTEGRATION.md file
  2. Follow the instructions step by step
  3. Copy and adapt the provided code examples into your project
  4. Replace placeholders (e.g., API keys, endpoints) with your actual values

Your software will be connected to LicenseCommerce. License validation and subscription checks will work automatically.

3. LICENSE File

Contains the legal terms and conditions for using the SDK. Make sure you review it before using the SDK in your product. This integration ensures your software is fully equipped with secure and automated license management capabilities.

How to Communicate with Your WooCommerce Store License Mechanism

When a customer purchases your subscription-based software from your WooCommerce store and installs it on their WordPress website, your software must verify the license with your store. This ensures that only valid users can access the software and its features.

To enable this communication, you need to configure the LicenseCommerce SDK by updating a specific file called LicenseIntegration.php, located inside the src folder. This file contains important settings that connect your software to your WooCommerce store for license validation and subscription management.

Step 1: Locate the File

  1. Open your project folder
  2. Navigate to the SDK directory: licenseflow-sdk → src → LicenseIntegration.php
  3. Open the file in a code editor

Step 2: Identify Key Variables

Inside the file, you will find two important variables: API_URL and RENEW_URL. These variables define how your software communicates with your WooCommerce store.

Step 3: Update API_URL (License Validation Endpoint)

Purpose: Used to verify license keys with your store.

  1. Replace the existing value with your actual API endpoint — your store's URL
  2. Example: API_URL = 'https://store.example.com/wp-json/store/v1/validate-license';

This URL connects your software to your WooCommerce store. When a user enters a license key, your software sends a request to this endpoint, and the store responds with the license status (valid, expired, etc.).

Step 4: Update RENEW_URL (Subscription/Renewal Link)

Purpose: Redirects users to renew or manage their subscription.

  1. Replace it with your store's URL. Example: RENEW_URL = 'https://store.example.com/';
  2. Save the updated LicenseIntegration.php file
  3. Upload or deploy the updated code to your software/plugin

WooCommerce Recommended Settings – Recurring Payments

To ensure that recurring payments (subscriptions) work smoothly in WooCommerce, you need to configure a few important settings. These settings help automate billing, improve the checkout experience, and ensure proper communication between WooCommerce and your payment gateway (Stripe).

1. Downloadable Products Settings

Path: WooCommerce → Settings → Products → Downloadable Products

This section controls how digital products (such as software downloads or subscription-based products) are delivered to customers.

lfm-downloadable-products-settings
  • File Download Method: Select Force Downloads (secure and recommended)
  • Keep other settings as the default unless you have specific requirements

Why This Matters: Ensures secure delivery of downloadable files, prevents unauthorized access to your software files, and works well with subscription-based digital products.

2. Accounts & Privacy Settings

Path: WooCommerce → Settings → Accounts & Privacy

This section manages how customer accounts are created and used during checkout. Since subscriptions require ongoing user access, having a proper account setup is essential.

lfm-accounts-privacy-settings

Enable the following options:

  • Enable login during checkout
  • Allow customers to create an account during checkout
  • Allow account creation on "My Account" page
  • Account Creation Options: Send password setup link (Recommended), Generate account username automatically (Recommended)

Why This Matters: Users can easily create accounts while purchasing, returning customers can log in quickly, and subscriptions can be properly linked to user accounts.

3. Payment Methods Configuration

Stripe is the recommended payment gateway for handling recurring subscription payments in WooCommerce.

Payment Methods Configuration

Path: WooCommerce → Settings → Payments → Stripe → Manage → Payment Methods

lfm-stripe-payment-methods

This section allows you to choose which payment methods are available to customers.

Important Note: Recurring payments only work with card payments. Other payment methods may not support automatic renewals.

Why This Matters: Ensures subscriptions renew automatically and prevents payment failures due to unsupported methods.

Stripe API & Webhook Setup

Path: WooCommerce → Settings → Payments → Stripe → Manage → Settings (Stripe API → Webhook Endpoints)

lfm-stripe-webhook-setup

Webhooks allow Stripe to communicate with your WooCommerce store in real time. They notify your store about important subscription events.

Step-by-Step Setup

  1. Go to Stripe Settings in WooCommerce
  2. Click Configure Connection (if not already connected)
  3. Open your Stripe Dashboard
  4. Navigate to Developers → Webhooks
  5. Add a new Webhook Endpoint
  6. Enter your WooCommerce webhook URL
  7. Select the required events

Required Webhook Events

  • Customer Events: customer.subscription.deleted (subscription canceled), customer.subscription.updated (subscription details changed)
  • Invoice Events: invoice.payment_failed (payment failed), invoice.payment_succeeded (payment successful)

Why Webhooks Are Important: Without proper webhook configuration, WooCommerce won't know if a payment succeeded or failed, subscription renewals may stop working, and license status may become incorrect. With webhooks configured, payments are tracked in real-time, subscription status updates automatically, and LicenseCommerce can sync license status accurately.

These settings ensure your WooCommerce store is fully optimized for handling subscription-based software products with LicenseCommerce.

Setting Up Subscription Products

In WooCommerce, you can create two types of software products: simple products and variable products. A simple product is ideal when you offer a single plan (e.g., one pricing tier), while a variable product is used when you have multiple variations such as different pricing levels or features.

Simple Subscription Product (Single Plan)

We will create a simple subscription product with a monthly recurring payment.

Step 1: Add a New Product

  1. Go to WordPress Dashboard → Products → Add New Product
  2. Enter the product name: Cloud Accounting Software - Business Plan

Step 2: Configure Product Type

  1. In the Product Data section: Select Simple Product from the dropdown
  2. Enable: Virtual and Downloadable

Step 3: Set Pricing and Downloadable File

  1. Under the General tab: Enter Regular Price (e.g., $49.99)
  2. Add your software file: click Add File, enter file name (e.g., cloud-accounting-software), then upload or paste the file URL
  3. Configure Download Limit (leave blank for unlimited) and Download Expiry (leave blank for no expiry)
lfm-simple-subscription-product

Step 4: Enable Subscription Settings

  1. Go to the Subscription tab
  2. Enable: Enable subscription for this product
  3. Set: Subscription Period → Month and Subscription Interval → 1

This means the subscription will renew every 1 month (monthly billing cycle).

Step 5: Configure Inventory (Recommended)

  1. Go to the Inventory tab: add SKU (e.g., PRO-CLOUD), set Stock Status → In Stock, and optionally enable Sold Individually to restrict one purchase per user
  2. Click the Publish button

Your simple subscription product is now live. When a customer purchases this product, a monthly recurring payment will be initiated and the subscription will automatically renew every month.

Variable Subscription Product (Multiple Plans)

Step-by-Step Guide (Starter Plan Only)

Step 1: Add a New Product

  1. Go to WordPress Dashboard → Products → Add New Product
  2. Enter the product title: TaskFlow Project Management Software

Step 2: Select Product Type

  1. In the Product Data dropdown, select Variable Product
  2. Go to the Inventory tab: enter SKU (PROTASKFLOW) and enable Sold Individually

Step 3: Create Attributes for Variations

  1. Go to the Attributes tab and click Add New
  2. Configure: Name → Plan, Values → Starter | Professional | Enterprise
  3. Enable: Visible on the product page and used for variations
  4. Click Save Attributes — this creates the plan options for your product
lfm-variable-product-attributes

Step 4: Generate Variations

  1. Go to the Variations tab
  2. Click Generate Variations (or add manually)
  3. WooCommerce will create: Starter, Professional, and Enterprise
lfm-variations-generated

Step 5: Configure Starter Plan (Monthly Subscription)

  1. Locate and click on the Starter Variation
  2. Enable: Enabled, Virtual, and Downloadable
  3. Enter details: SKU (PROTASKFLOWSTARTER), Regular Price (e.g., $9.49), Stock Status (In Stock)
  4. Add downloadable file: File Name (taskflow-project), upload or paste the file URL, Download Limit (Unlimited), Download Expiry (Never)
lfm-variation-starter-plan

Note: A subscription for variable products on the website will only be created if the LicenseCommerce plugin is installed. The LicenseFlow Subscription option will only appear after the plugin is activated.

Step 6: Enable Subscription for Starter Plan

  1. Enable: Enable Subscription
  2. Set Period → Month, Interval → 1 (configures the Starter plan as a monthly recurring subscription)
  3. Click Save Changes for the variation
  4. Click the Publish button to make the product live

A variable product with multiple plans is created successfully. The Starter Plan is configured with a monthly recurring payment model. Customers selecting this plan will be billed automatically every month.

We created a product with three plans, each featuring a different recurring payment model:

  • Starter Plan: Monthly subscription
  • Professional Plan: Quarterly (3-month) subscription
  • Enterprise Plan: Annual (yearly) subscription

Each plan can be configured similarly with different subscription periods and pricing.

Max Site Activations

Max Site Activations lets you control how many websites can use the same license key at the same time. Enter the maximum number of websites allowed for the product or subscription plan. For example, if you set this value to 5, the customer can activate the same license key on up to five different websites simultaneously. Once the maximum number of activations is reached, the license cannot be activated on another website unless an existing site activation is removed or deactivated.

Example: If Max Site Activations = 5, one license key can be active on 5 websites at the same time.

lfm-max-site-activations

This feature is useful when offering multi-site license plans to developers, agencies, freelancers, or businesses that manage several websites. It allows customers to use one license key across multiple authorized websites while ensuring that the number of active sites remains within the limit you have defined. All activated websites can access the product's licensed or Pro features as long as the license remains valid and the activation limit is not exceeded.

Bundle Support

Bundle Support allows you to offer paid technical support as an optional add-on to a product subscription. Customers can continue using the plugin's premium features and receiving product updates without purchasing paid support. They may also receive limited free assistance, such as help with basic questions, general usage guidance, and access to available documentation.

To offer premium support, enable the Enable Support option and enter the recurring support fee in the Additional Support Price field. Customers can then choose whether to add the support plan to their subscription. The support fee is added to the regular subscription price and follows the subscription billing cycle. For example, if the product subscription costs $19.99 per month and the Additional Support Price is $10, a customer who selects support will pay $29.99 per month.

lfm-bundle-support

While the paid support subscription is active, customers can receive additional services such as priority ticket handling, faster response times, detailed troubleshooting, installation assistance, issue investigation, and expert technical guidance. If the support subscription expires or is no longer active, these premium support benefits will end, while limited free assistance may still be available.

lfm-cart-support-lineitem

This feature gives customers the flexibility to pay for advanced technical support only when they need it, while allowing you to manage premium support separately from the main product subscription.

Lifetime Subscription Plan

The Lifetime Subscription Plan allows you to offer your product for a one-time payment instead of charging customers monthly or yearly. After purchasing a lifetime plan, the customer can continue using the product's Pro features without recurring subscription fees or license renewals. The lifetime license remains active for the lifetime of the product, with access to product updates based on your licensing policy.

To create a lifetime plan, enable Subscription and select Lifetime (one-time payment) as the Subscription Period. You can also use Max Site Activations to specify how many websites can use the same lifetime license at the same time. For example, setting this value to 5 allows the license to be activated on up to five websites simultaneously.

lfm-lifetime-subscription

If Lifetime Support is included with the plan, customers also receive premium technical support for as long as the product is supported, without paying a separate recurring support fee. In this case, the regular Enable Support option is automatically disabled because additional paid support is not required.

A Lifetime Subscription provides customers with a simple one-time purchase that can include permanent access to Pro features, product updates according to the licensing policy, and lifetime support when offered — without recurring subscription or support payments.

Sale Price

The Sale Price feature allows you to offer a discounted subscription price during special promotions such as Black Friday, Cyber Monday, seasonal sales, product launches, or other limited-time offers. Customers who subscribe during the promotion receive the product at the discounted price while continuing to enjoy the same features and benefits included with the regular subscription.

lfm-sale-price

For recurring subscriptions, the promotional price may continue to be used for future renewal payments even after the sale has ended. This allows existing customers to keep the price that was applied when their subscription was originally created.

If you want an existing subscription to use the product's current subscription price instead, open the corresponding order and click Update Subscription to Current Price. LicenseCommerce will update the subscription to match the product's current pricing configuration.

lfm-update-subscription-price

The price change applies only to future renewal payments. It does not change previous payments, completed orders, or invoices. For example, if a customer originally subscribed for $11.99 per month during a sale and the current subscription price is $19.99 per month, updating the subscription will cause the next renewal and subsequent renewals to be charged at $19.99 per month.

This gives administrators control over whether customers keep their original promotional subscription price or move to the product's current pricing.

How to Purchase a Software Product License Key

This section explains how users can purchase a software product, receive a license key, download the product, and install it on their WordPress website. The process is simple and fully automated using Stripe for secure payments and LicenseCommerce for license handling.

Step 1: Purchase the Product

  1. Visit the product page: Cloud Accounting Software – Business Plan
  2. Click Buy Now (or Add to Cart and proceed to checkout)
  3. Complete the payment using Stripe

Step 2: Access License Key from Account Dashboard

  1. After purchase, go to My Account → Licenses
  2. Navigate to the section where purchased products are listed
lfm-my-account-licenses

Here, the user can view:

  • Product Name: Displays the name of the software product associated with the license.
  • License Key: Displays the unique license key used to activate the software.
  • Status: Shows the current status of the license, such as Active, Inactive, or Expired.
  • Activations: Shows the number of websites currently using the license compared to the maximum allowed activations.
  • Expiry: Displays the date when the license or subscription expires.
  • Plan Type: Displays the type and duration of the purchased plan, such as Lifetime, 1 Year, or 1 Month.
  • Actions: Provides available options for managing the subscription, such as canceling an active subscription.

Important:

  • If the "Cancel Subscription" button is visible, it confirms that the subscription is active and running.
  • A recurring subscription is automatically created, and the user will be billed monthly without manual renewal.
  • The License Key should be copied and saved for software activation.
  • The cancel subscription option is available in your front-end account dashboard.
  • Clicking Cancel Subscription will not immediately deactivate your license.

Step 3: Download the Software

  1. Go to My Account → Downloads
  2. Locate the product: Cloud Accounting Software – Business Plan, and click on the Download button
  3. A ZIP file of the software will be downloaded. This file contains all the required installation files.
lfm-my-account-downloads

Step 4: Install the Software on WordPress

  1. Log in to your WordPress Admin Dashboard
  2. Go to Plugins → Add New → Upload Plugin
  3. Click Choose File and select the downloaded ZIP file
  4. Click Install Now
  5. After installation, click Activate
  6. The software is successfully installed on your website. You can now start using the plugin.

Step 5: Activate the License

  1. Click on the license section
  2. Paste the License Key copied earlier
  3. Click Activate License
lfm-sdk-license-activation

Note: The license section will be available in every plugin that includes license SDK integration, allowing users to activate their license key there.

LicenseCommerce Dashboard

LicenseCommerce Dashboard provides a centralized view to manage and monitor all your product licenses with ease. It highlights key metrics like total, active, expired, and inactive licenses at a glance. Users can quickly search, filter, and track license details, including customers, site URLs, and expiration dates. The clean interface ensures efficient license management and real-time insights.

lfm-dashboard-overview
  • Total: Total number of licenses.
  • Active: Licenses currently valid and working.
  • Expired: Licenses that have ended.
  • Inactive: Licenses not currently in use.
  • Refresh Data button: Reloads the data to show the latest license info.

Search & Filters

  • Search bar: Type to quickly find a license.
  • All Statuses dropdown: Filter by Active / Expired / Inactive.
  • All Types dropdown: Filter by license type (e.g., monthly, yearly).
  • Date range (Start: End): Filter licenses by issue date.
  • Reset button: Clears all filters.

License Table

  • Product: Name of the product tied to the license.
  • License Key: Unique key (partially hidden for security).
  • Customer: Person who owns the license.
  • Site URL: Website where the license is activated.
  • Type: Duration (e.g., 1 month).
  • Status: Active, Inactive, and Expired
  • Issued: Date the license was created.
  • Expires: Date the license will expire.

Technical Support

If you've followed the steps outlined in this guide and still need assistance, please don't hesitate to contact our support team. E-mail us at [email protected] — we're here to help!

backtotop