On this page

Guide

Sell Software License Keys with Stripe (Without Platform Commissions)

If you want to sell a desktop app, CLI tool, or plugin using your own Stripe account (or Stripe Managed Payments), you usually face two annoying options:

  1. Build and host your own Stripe webhook server, key generator, database, and transactional email pipeline from scratch.
  2. Rely on a legacy licensing tool charging $199–€299/month or paying percentage MoR markups just to deliver keys.

Keyfern lets you keep your own Stripe checkout while automating license key generation, email delivery, and subscription renewals for a flat monthly fee, with 0% sales commission from Keyfern.

How the Stripe Integration Works

  1. Create your Product in Keyfern: Configure default machine limits, feature flags (F1–F8), duration (perpetual or timed), and optional offline leases.
  2. Create a Stripe Payment Link or Checkout Session: Use your own Stripe account, so funds go directly to your bank account via Stripe.
  3. Connect the Webhook: Point a Stripe webhook to your Keyfern product endpoint and paste your whsec_ signing secret in the Keyfern dashboard. Exact events (checkout.session.completed, invoice.paid) and how repeated Stripe deliveries are handled: Stripe webhook setup.
  4. Automatic Key Delivery & Renewals:
    • When a customer pays, Keyfern verifies the Stripe webhook signature (with idempotency by event ID), creates the license key, and emails it directly to the buyer.
    • For subscriptions, invoice.paid renewal events automatically extend the key’s expiration date (with a 3-day grace window).

Already have existing license keys from another system? Keyfern supports bulk CSV and JSON imports (up to 20,000 keys per request) and full CSV exports at any time.

Honest Tax & Compliance Note (Important)

Keyfern is not a Merchant of Record. Keyfern never touches your funds or processes customer payments. You remain the merchant on your own Stripe account, which means VAT, sales tax, and chargeback/refund handling remain your responsibility (for example via Stripe Tax or Stripe Managed Payments).

Leaving Lemon Squeezy before it stops processing payments on March 31, 2027? See the Lemon Squeezy license keys alternative: your customers keep their existing keys.

Pricing

Stripe key selling is included on all paid plans with 0% sales commission:

Start free and test the SDK in 5 minutes at https://keyfern.com/docs.