Selling licenses with Stripe
This guide sets up a store selling licenses of your app, from an empty Stripe account to a customer receiving their key. It uses a Payment Link, so you don’t write any code. You’ll:
- Create the policies in LicenseManager.
- Create the products and prices in Stripe.
- Connect Stripe and map the prices to the policies.
- Create a Payment Link and try it.
- Try the money back guarantee: cancel the license, and get refunded.
- Add a monthly and a yearly subscription.
We’ll sell Acme Editor with two offers: a Personal license for $49 working on 2 machines, and a Business license for $199 per seat working on 3 machines, both with a year of updates and a 30-day money back guarantee.
Follow the guide with a test product and Stripe in test mode first: nobody is charged, and you can pay with Stripe’s test cards . Then do it again in live mode.
To know exactly what the integration does and doesn’t do, read the Stripe integration overview.
Create the policies
A policy is what the customer gets: how long the license lasts, on how many machines, for which versions, and how long they can ask for their money back. Create one per offer.
Open the policies
In LicenseManager, open your product, then Policies.
Create the Personal policy
Create a policy named Personal, with Max machines set to 2, a maximum version of one year of updates, and Money back guarantee set to 30 days.

Create the Business policy
Create a policy named Business, with Max machines set to 3, and the same maximum version and money back guarantee.
During the 30 days after their purchase, customers can cancel their license from the customer portal: the key stops working, and LicenseManager refunds their payment in Stripe. Leave Money back guarantee empty for no guarantee. See money back guarantee.
Create the products and prices in Stripe
In Stripe, a product is what you sell, and a price is how much and how it’s charged. A product can have several prices, for example one per currency.
Open the product catalog
In the Stripe dashboard , open Product catalog, in the mode you’re setting up, and click Create product.

Create the Personal product
- Name:
Acme Editor Personal. It’s shown on the checkout page, the receipt, and in LicenseManager. - Description and Image: optional, shown on the checkout page.
- Pricing: choose One-off. We’ll add recurring prices later.
- Amount:
49.00 USD.
Click Add product.
One-off prices create one license per unit bought, sold once. Recurring prices create a subscription license, valid while the customer pays: see sell a subscription.
Create the Business product
Do the same with Name Acme Editor Business and Amount 199.00 USD.
Add other prices, if you need them
To sell in several currencies, open a product and click Add another price, for example 45.00 EUR. Each price is mapped on its own, and they can map to the same policy. Stripe also lets you add other currencies to one price : it then stays one price, mapped once.
You can also let the customer choose what they pay : LicenseManager records the amount they chose on the license.
Changing a price later
Stripe doesn’t let you change the amount of a price once it’s used. To change it, create a new price on the product, archive the old one, then in LicenseManager map the new price and delete the old mapping. See mapping statuses.
Connect Stripe
In LicenseManager, open your product, then Integrations, and click Connect Stripe. Create a restricted API key with the permissions listed, and paste it. Give it the optional Refunds: Write permission too: it’s what lets LicenseManager refund the licenses canceled during the money back guarantee. Without it, canceled licenses aren’t refunded, and the Refunds card warns you.
Connecting Stripe explains each step and each permission in detail.
Map the prices
Still on the Integrations page, in the Price mappings card, click New mapping:
- Map Acme Editor Personal · $49.00 to the Personal policy.
- Map Acme Editor Business · $199.00 to the Business policy.
Paying these prices now creates licenses. See mapping prices to policies.
Create a Payment Link
A Payment Link is a checkout page hosted by Stripe, which you share or put behind a Buy button on your website.
Create the link
In the Stripe dashboard, open Payment Links and click New. Choose Products or subscriptions, and add Acme Editor Personal.
Let customers buy several licenses
For Business, add Acme Editor Business and turn on Let customers adjust quantity: a customer buying 5 seats gets 5 licenses, each with its own key, in one email.
Check the options
- Collect customers’ names is optional: when on, the name is set on the customer in LicenseManager.
- Create customers in Stripe is optional: when on, the customer in LicenseManager links to the Stripe customer.
- Confirmation page: tell the customer their license key is on its way by email.
- Allow promotion codes: works, the license records the price after discount.
- Collect tax automatically: works, the license records the price before taxes.
Create it
Click Create link, and copy the link.
Using Stripe Checkout from your own code instead works the same way: create the Checkout Session in payment mode with your mapped prices in its line_items.
Try it
Pay
Open the Payment Link and pay. In test mode, use the card 4242 4242 4242 4242, any future expiration date, any CVC, and an email address you can read.
Check the license
Within seconds, in LicenseManager, the license appears in your product’s Licenses, with the Personal policy, a price of $49.00, and a Stripe payment linking to the payment. The Last event of the Stripe card is updated.
Check the email
The email address you paid with receives the license key.
If no license appears, open the Stripe card of the Integrations page: an error tells you what’s wrong. Check the price you paid is mapped, and that you’re in the same mode in Stripe and in LicenseManager.
Try the money back guarantee
Play the customer who changed their mind:
Open the customer portal
In LicenseManager, open your product’s Settings, then the Portal tab, and open the Portal URL of the customer portal. Sign in with the email you paid with: in a test product, it must be the email of a member of your organization.
Cancel the license
The license’s card shows Cancel license, since its 30 days haven’t ended. Click it, confirm with Cancel now, pick a reason, and Cancel now again.
Check the refund
Within seconds:
- The license’s status is Canceled, and its Stripe refund links to the refund of $49.00 in Stripe.
- The email you paid with receives a confirmation of the cancellation, with the amount refunded.
- The owners and admins of the organization receive the cancellation, with the reason you picked.
- The product’s Dashboard shows a cancellation rate.
If the license is canceled but not refunded, open the Refunds card of the Integrations page: the API key may lack the Refunds: Write permission, or Refund canceled licenses automatically is unchecked. See refunds.
Sell a subscription
Now offer Acme Editor Pro as a subscription, at $12 a month or $120 a year: customers keep their license while they pay, and get every update.
Create the Pro policy
In LicenseManager, create a policy named Pro, with Max machines set to 3. Leave the duration, updates and money back guarantee as they are: subscription licenses ignore them, expiring when the subscription stops, with every update, and no money back guarantee. See what a subscription license gets.
Give the API key the subscription permissions
In Stripe, edit the restricted key: set Subscriptions to Write, which includes read, and Customer portal to Write. Then click Check now on the Stripe card. See connecting Stripe.
Create the recurring prices
In Stripe, create a product Acme Editor Pro, with Recurring pricing, 12.00 USD, Monthly. Then Add another price: Recurring, 120.00 USD, Yearly.
Map them
On the Integrations page, map Acme Editor Pro · $12.00 / month and Acme Editor Pro · $120.00 / year to the Pro policy. The Subscriptions card appears, with the grace period given to failed renewals.
Turn on the Stripe customer portal
In Stripe, open Settings › Billing › Customer portal, turn it on, and allow customers to cancel and to switch between the monthly and yearly prices of Acme Editor Pro.
Subscribe
Create a Payment Link with the monthly price, open it and pay with the test card. The license appears with the Pro policy, a Subscription of $12.00 / month renewing in a month, and its key is emailed.
Manage it as the customer
Open the customer portal and sign in: the license shows when it renews, and Manage subscription opens the Stripe customer portal. Switch to the yearly price: the license now renews in a year. Cancel the subscription at the end of the period: the license shows when it ends, and expires then.
See subscriptions for renewals, failed payments, plan changes and cancellations.
Before going live
- Do it again in live mode: a live product, a live mode API key, live products and prices, and a live Payment Link. Test mode objects aren’t copied to live mode.
- Link to the customer portal, from your website, the Payment Link’s confirmation page and your app’s Help menu: it’s where customers find their keys, cancel during the money back guarantee, and manage their subscription. Mention the guarantee on your pricing page.
- Match the grace period to your Stripe retry schedule, in Stripe’s subscription settings , so that customers whose renewal failed keep their license while Stripe retries.
- Decide how you handle refunds and disputes. Refunds you make from Stripe, outside the money back guarantee, and disputes don’t change licenses: cancel them manually, without refunding them again. See refunds and disputes.
- Watch your emails. The owners and admins of the organization are emailed when the integration breaks: customers could pay without getting a license until it’s fixed. See when the integration breaks.
- Validate the keys in your app, if you haven’t yet. See validating keys.