Quick start
Four steps from sign-up to a sold key.
1. Sign up
Go to Sign in, enter your email and type the code we send you. There is no password. Name your company; the account starts as waiting for approval. Meanwhile you can set everything up and test with up to 5 licenses.
2. Create a product
Pick a product key such as yourcompany.yourapp (lower case, unique across LicensePier), the trial length, how long a
license lasts (0 = forever) and on how many computers one key may run. A signing key is made for the product at once.
3. Add the license screen to your app
Reference the NuGet packages SGU.Tools_LicensingClient and SGU.Tools_LicensingUI. The product page shows the
exact code with your key already pinned. It looks like this:
internal static readonly AppLicenseCore Core = new(new AppLicenseOptions
{
ProductKey = "yourcompany.yourapp",
PrimaryApiUrl = "https://licensepier.com",
PinnedKeys = PinnedKeys, // kid -> public key, from the product page
RequirePinnedKeys = true,
TrialDays = 7,
LicenseFilePath = () => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "yourapp", "license.lic"),
});
// On your license window:
Controls.Add(new LicensePanel(new AppLicenseCoreAdapter(AppLicense.Core)) { Dock = DockStyle.Fill });
4. Connect your Stripe account
In your Stripe dashboard add a webhook endpoint with the URL from the Stripe page, select the events listed there and paste its signing
secret (whsec_...) into LicensePier. Then either map each Stripe Price to a product (this needs a restricted key with read
access to Checkout Sessions and Prices), or add the metadata licensepier_product = your product key to the Payment Link.
Once your account is approved, every purchase issues a key and emails it to the buyer.
Seller API
Create an API key on the API keys page and send it as Authorization: Bearer lp_.... For example:
POST https://licensepier.com/api/v1/seller/licenses
Authorization: Bearer lp_...
{ "productKey": "yourcompany.yourapp", "email": "buyer@example.com", "days": 365 }