Payments, renewals and refunds
This page follows a one-time purchase from the payment to the license, then covers what happens after it: renewals, refunds, disputes, and when the integration breaks. Subscriptions have their own page: see subscriptions.
Payments
The customer pays
The customer pays with a Stripe Checkout page, created by your website or by a Payment Link. Stripe collects their email, payment details and taxes, and sends them a receipt if you enabled it.

Stripe notifies LicenseManager
Stripe sends a checkout.session.completed event to the webhook. LicenseManager checks its signature, so nobody else can create licenses, stores it, and answers Stripe right away. The event is processed in the background, within seconds.
The Last event of the Stripe card is updated.
LicenseManager checks the checkout
The checkout is ignored, creating nothing, when:
- It isn’t a one-time payment, like a setup checkout, or a subscription checkout: subscriptions are handled by their invoices instead.
- It isn’t paid yet, which happens with delayed payment methods.
- None of its prices is mapped.
- It already created licenses.
The licenses are created
For each line item of a mapped price, LicenseManager creates as many licenses as the quantity, with the mapping’s policy, for the customer of the checkout’s email. See what a mapping creates.

The customer receives their keys
The customer receives one email with all their license keys, and their expiration dates. When sending fails, it’s retried, without creating the licenses again. You can send the keys again from the license page with Send key.
In a test product, the keys are only emailed when the checkout’s email is a member’s of your organization: see emails in test mode.

The customer
The customer is found by the checkout’s email, for the product: buying again with the same email adds licenses to the same customer, and an email you already know, like from a license you created manually, gets the new licenses too. The email is case-insensitive.
- Their name is set from the checkout’s, when they had none. A name you set is kept.
- Their Stripe customer is set when the checkout created or used one, linking to it in the Stripe dashboard. With a guest checkout, Stripe creates no customer, and it stays empty.
See how customers are created.
What’s recorded
Each license created by Stripe shows:
- Stripe payment: the payment it was bought with, linking to it in the Stripe dashboard.
- Price: what was paid for this license, after discounts and before taxes, in the checkout’s currency.
- Meta:
stripe.checkoutSessionIdandstripe.lineItemId, the checkout and line item it comes from. You can add your own fields next to them.
The events of these licenses show Stripe as who created them.

Delayed payment methods
Some payment methods, like bank transfers, SEPA Direct Debit or ACH, take days to confirm. Stripe completes the checkout before the payment succeeds, so:
- On
checkout.session.completed, the checkout is unpaid: nothing is created. - On
checkout.session.async_payment_succeeded, days later, the licenses are created and emailed. - If the payment fails instead, nothing is ever created. Stripe tells the customer.
Free checkouts
A checkout with nothing to pay, for example with a 100% off coupon, creates licenses like a paid one, with a price of 0.
Duplicated events
Stripe can send the same event more than once, and sends two events for a delayed payment. A checkout creates its licenses only once, whatever the number of events.
When a payment creates nothing
The payment is marked as failed and the integration shows Error with the reason when:
- The checkout has no email. Stripe Checkout and Payment Links always collect one, so this only happens with unusual setups.
- The policy of the mapping was deleted while the payment was processed.
Create the licenses manually for this customer, then click Check now on the Stripe card to clear the error.
Renewals
To renew licenses automatically, sell them with a subscription: map a recurring price, monthly, yearly or any period, and each renewal keeps the license valid for another period, with the same key, until the customer stops paying. See subscriptions.
Licenses sold once don’t renew. To sell licenses that expire, like a one-year license, map a one-time price to a policy with a duration. When it nears its end:
- The customer buys again, with the same email: they get a new license, with a new key, starting from the purchase date. The expired license isn’t extended, so they enter the new key in your app.
- Or you extend it manually: once they paid you, edit their license and push back its Expires date. Their key stays the same.
Refunds
LicenseManager refunds the payments of the licenses sold once that are canceled, like by a customer during their money back guarantee. A refund you make yourself in Stripe doesn’t change the licenses: see refunds made in Stripe.
Subscription payments are never refunded by LicenseManager: canceling a subscription license cancels its subscription, without a refund. Refund them from Stripe if you want to. See canceling.
Refunds of canceled licenses
When a license bought through the integration is canceled, LicenseManager refunds its payment in Stripe, in the background, within seconds:
- The amount is the license’s share of its line item, taxes included: a checkout of 3 licenses for $147, taxes included, refunds $49 per license canceled. Licenses whose checkout can’t be read are refunded their price. Free licenses refund nothing.
- Only that amount is refunded, never the whole payment: the other licenses of the checkout keep working.
- The refund has the reason Requested by customer, and the license’s id and key in its metadata. It’s never made twice, even when the cancellation is retried.
- The license’s Stripe refund links to it, and a
license.refundedevent, by Stripe, records the amount.
Automatic refunds
Refunds are on by default. To turn them off, open the Integrations page of any product, and uncheck Refund canceled licenses automatically on the Refunds card. The setting applies to every product of the organization in the same mode.
| Canceled by | Automatic refunds on | Automatic refunds off |
|---|---|---|
| A customer, from the customer portal or a scoped token | Refunded | Not refunded |
| A member, in the app | Refunded, unless Refund the Stripe payment is unchecked | Same: the checkbox is checked by default |
| Your backend, with an API key | Refunded, unless refund is false | Refunded only when refund is true |
Refunds need the optional Refunds: Write permission on the API key. Without it, the Refunds card warns you, nothing is refunded whatever the setting, and you refund the payments from Stripe yourself. See Refunds: Write.
When a refund fails
The license stays canceled, a license.refund_failed event records why, and the owners and admins of your organization are told in the cancellation email. It happens when:
- The integration was disconnected, or the API key was revoked or lost its permission.
- Stripe refuses the refund, like for a payment already refunded from the Stripe dashboard.
- The license has no price, and its checkout can’t be read: the amount to refund is unknown.
Refund the payment from Stripe. When Stripe is only briefly unreachable, the refund is retried, without failing.
Refunds made in Stripe
When you refund a payment from the Stripe dashboard, fully or partially, LicenseManager isn’t notified, and its licenses keep working. To refund and stop a license at once, cancel it from LicenseManager instead. Otherwise, it’s up to you to decide what the customer keeps:
- In Stripe, open the payment and copy its id (
pi_…), or find the licenses from the customer’s page in LicenseManager. - Open each license of the payment. Its Stripe payment shows the payment it was bought with.
- Then either:
- Cancel it, with Refund the Stripe payment unchecked: the key stops validating for good, it leaves your revenue, and the license stays in your history. This is what we recommend.
- Expire it: click Edit and set its Expires date to today. The key stops validating, and you can push the date back later.
- Delete it: removes the license and its history. A license used on active machines can’t be deleted: deactivate them, or cancel it instead.
For a partial refund, like refunding 2 seats of 5, cancel as many licenses as you refunded.
For a subscription payment, refunding it doesn’t end the subscription either: cancel the subscription in Stripe too, and its license expires. To lower its seats instead, change the subscription’s quantity.
A canceled or expired license stops working once your app validates it again. With offline validation, the app keeps working until its license token expires, up to the policy’s maximum offline duration.
The license’s price isn’t changed by a refund: it’s what was paid, not what you kept. Your revenue counts it until you cancel or delete the license.
Disputes
Disputes aren’t supported yet: a dispute or chargeback doesn’t change the licenses of the payment, whatever its outcome.
When a customer disputes a payment, Stripe emails you and shows it in the dashboard, but LicenseManager isn’t notified. Depending on the case:
- While the dispute is open, you can keep the licenses working, or expire them and push back their expiration date if you win.
- If you lose the dispute, the money is returned to the customer: cancel the licenses, without refunding them, as for a refund made in Stripe.
- If you win, there’s nothing to do, unless you expired them meanwhile.
When the integration breaks
When the API key is revoked, loses a permission, or the webhook is deleted, the integration is in Error or Disconnected and the owners and admins are emailed after the next daily check.

Meanwhile, customers can still pay in Stripe: Stripe doesn’t know about LicenseManager. They are charged, but may not get a license, and these licenses aren’t created once you fix the integration.
To recover:
- Fix the integration: replace the API key or give back the missing permission, then click Check now.
- In the Stripe dashboard, list the payments made since the integration broke, filtering on the date. The email tells you when the check failed, and the Last event of the card when Stripe last reached LicenseManager.
- For each payment without a license, create the licenses manually for the customer’s email, with the policy of the mapping, and send them their keys.
When LicenseManager itself is briefly unreachable, nothing is lost: Stripe retries sending the events for up to three days.
Summary
| In Stripe | In LicenseManager |
|---|---|
| A mapped one-time price is paid | Licenses created, keys emailed |
| The first invoice of a subscription to a mapped recurring price is paid | One license created, key emailed |
| A subscription renews | License extended to the new period, payment recorded |
| A subscription payment fails | Payment failure recorded, license valid for the grace period |
| A subscription changes price or quantity | License follows its policy and seats |
| A subscription is set to cancel at the end of its period | License expires then |
| A subscription is canceled, unpaid or paused | License expires right away |
| A delayed payment is pending | Nothing, until it succeeds |
| A delayed payment succeeds | Licenses created, keys emailed |
| A delayed payment fails | Nothing |
| An unmapped price is paid | Nothing |
| A payment is refunded from Stripe | Nothing: cancel the licenses manually |
| A payment is disputed | Nothing: cancel the licenses manually if you lose |
| A mapped price or product is archived or deleted | Mapping flagged |
| The API key is revoked | Integration Disconnected, admins emailed |
| The webhook is deleted | Created again by the next check |
And the other way around:
| In LicenseManager | In Stripe |
|---|---|
| A license bought once through Stripe is canceled | Its share of the payment refunded, as automatic refunds say |
| A subscription license is canceled | Its subscription canceled, immediately, without a refund |
| A license is deleted or expired | Nothing |