Guides/

How to sell software license keys

A 2026 guide to selling software with license keys: a buy page, a key emailed at checkout, and a validate call from the official SDKs.

What the buyer does

You create a product and a plan. Licensr hosts a buy page at licensr.app/buy/your-slug. The buyer pays on your Stripe, Mercado Pago, PayPal, or Razorpay account. Licensr emails a license key. Your product checks that key and unlocks.

The platform fee is flat, from $8.99/mo on the Indie plan (up to 500 active licenses), with 0% of each sale. A free tier covers a first product and 25 active licenses.

The check

Two calls cover almost every product. Validate asks whether a key is currently good. An unknown key on that call returns a normal response with valid set to false, not an error. Activate records this device or website against the key, so one key cannot be shared without a limit. If the key does not exist, activate returns an error.

Official SDKs wrap those calls for JavaScript and TypeScript, C++, C#, and Go. The snippets below are the validate call. Full setup is in the SDK docs and the license calls guide.

JS / TSnpm install @licensr/sdk
import {LicensrClient} from '@licensr/sdk';

const client = new LicensrClient({
  apiKey: 'pk_live_...',
  pluginSlug: 'my-synth',
});

const {valid, entitlement, featureFlags}
  = await client.validate({licenseKey: userKey});
C++CMake FetchContent → github.com/tekunodev/licensr-cpp
#include <licensr/licensr.h>

licensr::ClientConfig config;
config.api_key = "pk_live_...";
config.plugin_slug = "my-synth";
licensr::Client client(config);

client.validate(userKey, [](auto result) {
  if (result.ok() && result.value().valid) {
    unlockFullFeatures();
  }
});
C#dotnet add package Licensr.Sdk
using Licensr.Sdk;

var client = new LicensrClient(new() {
    ApiKey = "pk_live_...",
    PluginSlug = "my-synth",
});

var result = await client.ValidateAsync(new() {
    LicenseKey = userKey,
});
if (result.Valid) UnlockFullFeatures();
Gogo get github.com/tekunodev/licensr-go
import licensr "github.com/tekunodev/licensr-go"

client := licensr.NewClient(licensr.Config{
    APIKey:     "pk_live_...",
    PluginSlug: "my-synth",
})

res, err := client.Validate(ctx, licensr.ValidateRequest{
    LicenseKey: userKey,
})
if err == nil && res.Valid { unlockFullFeatures() }

Which key goes in the product

A client key is safe to ship inside the product. It can validate and activate. A server key stays on your server. It can also start checkout and call the Seller API. Never put a server key in code you distribute.

Each product has its own key. A leaked client key can only do what that product’s client key can do.

Lock the key to a device or a site

Seat mode binds an activation to a machine id you choose. Domain mode binds it to a website, which is what a WordPress plugin wants. The cap is a number of activations on the plan. Customers can release a device from the portal when they change computers.

Questions

Do I have to use an SDK?

No. The SDKs call the same REST API. Any language that can POST JSON can validate a key. The SDKs save the boilerplate.

What is an active license?

A key that currently works, including trials and keys you created by hand. Expired and deactivated keys do not count. One key on three computers is still one license.

When is the key emailed?

After the payment succeeds. The buyer gets the key by email and can also open it from the customer portal.