Skip to Content
Stripe integrationOverview

Stripe integration

The Stripe integration creates licenses automatically when your customers pay with Stripe. You keep selling with the Stripe tools you already use, Stripe Checkout  or Payment Links , and LicenseManager listens to the payments: each time a customer pays a price you chose, it creates the licenses they bought and emails them their keys.

Sell once, with one-time prices, or with a subscription, with recurring prices: monthly, yearly, or any period. A subscription license stays valid while the customer pays, gets every update, and expires on its own when they stop. See subscriptions.

You don’t write any code, and LicenseManager never touches your money: payments, invoices, taxes and receipts stay in Stripe. The only things it changes in Stripe are the refunds of the licenses canceled, and the subscriptions of the licenses you cancel, when you allow it.

How it works

  1. You connect your Stripe account with a restricted API key. LicenseManager creates a webhook on your Stripe account, so Stripe notifies it of payments.
  2. You map Stripe prices to policies: “paying this price creates licenses of this product, with this policy”.
  3. A customer pays one of these prices with Stripe Checkout or a Payment Link, or subscribes to it.
  4. Stripe notifies LicenseManager, which creates one license per unit bought, or one per subscription, for the customer’s email, and emails them their keys.
  5. For a subscription, each renewal keeps the license valid for another period, and the license expires when the subscription ends.

What the integration does

  • Creates licenses for one-time payments of the prices you mapped, made with Stripe Checkout or a Payment Link, including the ones paid with a delayed payment method like a bank transfer or SEPA Direct Debit, once the payment succeeds.
  • Creates one license per unit bought: a customer buying 5 seats gets 5 licenses, each with its own key.
  • Creates one license per subscription to the recurring prices you mapped, monthly, yearly or any period, with the policy’s machines times the quantity subscribed. It stays valid while the subscription is paid, with a grace period while Stripe retries a failed payment, includes every update, and expires when the subscription ends. Plan and quantity changes are followed. See subscriptions.
  • Records each subscription payment, and each failed one, as events, and counts them in your revenue and MRR.
  • Opens the Stripe customer portal from the customer portal, where customers update their payment method, switch plans or cancel their subscription.
  • Cancels the subscription of the subscription licenses you cancel. Optional.
  • Creates or finds the customer from the checkout’s email, and links them to their Stripe customer when there is one.
  • Emails the license keys to the customer, in one email per checkout, or when a subscription starts.
  • Records the price paid on each license, after discounts and before taxes, so your revenue stats are accurate.
  • Refunds canceled licenses: when a customer cancels a license during its money back guarantee, or you cancel it, its share of the payment is refunded. Optional, and on by default. See refunds.
  • Links each license to its Stripe payment, and each customer to their Stripe customer, so you can jump from one to the other.
  • Watches your prices and products: when a mapped price or product is archived or deleted in Stripe, the mapping is flagged so you know it no longer sells.
  • Checks itself every day: when the API key is revoked or loses a permission, or the webhook is deleted, the integration is flagged and the owners and admins of your organization are emailed.
  • Keeps live and test mode apart: a live mode key for your live products, a test mode key for your test products.

What the integration doesn’t do

Read this list before you start selling: in these cases, you have to act manually, in LicenseManager or in Stripe.

  • Usage-based prices aren’t supported. Metered recurring prices can’t be mapped: only one-time prices and recurring prices of a fixed amount per unit.
  • One-time licenses don’t renew. A license sold once with a policy that expires after a year isn’t extended when the customer pays again: they get a new license. To renew automatically, sell a subscription. See renewals.
  • Subscription payments are never refunded by LicenseManager, and subscription licenses have no money back guarantee. Refund them from Stripe.
  • Refunds made in Stripe aren’t handled. Refunding a payment in Stripe doesn’t change its licenses: they stay valid until you expire or delete them. See refunds.
  • Disputes and chargebacks aren’t handled. A disputed payment doesn’t change its licenses either, whatever the outcome of the dispute. See disputes.
  • Failed payments create nothing. A delayed payment that fails never creates licenses, nor a subscription whose first payment fails, and nobody is notified by LicenseManager: Stripe handles telling the customer.
  • Other ways of charging aren’t supported. One-time payments made with Stripe Invoicing, the Payment Intents API in your own code, the Stripe Terminal or created manually in the Stripe dashboard don’t create licenses: only Checkout Sessions do, which Payment Links create too. Subscriptions are the exception: however they’re created, from Checkout, the dashboard or the API, a paid invoice of a mapped price creates their license.
  • Missed purchases aren’t created afterwards. While the integration is broken, for example after the API key is revoked, customers can still be charged without getting a license, and these licenses aren’t created once it’s fixed. See when the integration breaks.
  • Nothing is written to your Stripe account, except the webhook, the refunds of canceled licenses when you give the key the optional Refunds permission, the cancellation of the subscriptions of the licenses you cancel with the optional Subscriptions: Write permission, and the customer portal sessions customers open with the optional Customer portal: Write permission. LicenseManager doesn’t create products, prices, customers, subscriptions or payments, doesn’t add metadata, and can’t charge anyone.
  • One Stripe account per mode. An organization connects one Stripe account for its live products and one for its test products. Two products can’t sell through two different Stripe accounts.

Stripe Managed Payments

Stripe Managed Payments  makes Stripe’s Link your merchant of record, like Paddle or Lemon Squeezy: it calculates, collects and files sales tax and VAT, and handles refunds and disputes with your customers. It doesn’t deliver license keys, files or download links: that’s what the integration does.

The integration works the same with Managed Payments. Managed Payments sales are Stripe Checkout Sessions and Payment Links created with managed_payments[enabled]=true, on your own Stripe account: their payments, subscriptions and invoices send the same webhooks, so you connect Stripe and map your prices like for any other sale. A few things differ:

  • Customers pay in their own currency. Adaptive pricing is always on with Managed Payments. A license bought once records its price in the currency the customer paid, before taxes; a subscription license, in the currency of its Stripe price.
  • Customers manage their subscriptions in Link, where they cancel, change plans and update their card. Their changes sync onto their licenses like any other subscription change. The customer portal still shows their licenses and machines.
  • Stripe may refund a customer itself, within 60 days of a purchase, or when you don’t answer a support request within 48 hours. Like any refund made in Stripe, it doesn’t change the license.
  • Subscriptions are created with Checkout or Payment Links only. Managed Payments doesn’t let you create them from the dashboard or the API.

Moving from Lemon Squeezy, whose migration tooling moves your subscriptions to Managed Payments? Import your keys and link them to their new subscriptions: see Migrating from Lemon Squeezy.

New to Stripe?

New to Stripe, or don’t have products and prices yet? Start with the Selling licenses with Stripe guide: it walks through creating them in Stripe, then setting up the integration, end to end.