For vendors using Usakey
Sell with Stripe
Get paid through your own Stripe account and have Usakey issue and suspend licenses based on payments.
How it works
You receive payments for your software through your own Stripe account. Usakey does not hold the funds. It receives payment notifications from Stripe and uses the payment status to issue, suspend, resume, or revoke licenses. Stripe sales integration is available starting with the Evaluation plan. On Evaluation, it is available only in test environments. A newly issued license on Evaluation lasts up to one hour from issuance, including after renewal. Quantity and policy limits also apply. Licenses issued on a paid plan keep their expiration date if you switch to Evaluation. You cannot extend them beyond that date.
- When someone buys, a license is issued and the buyer can receive the license key.
- After that, licenses are suspended, resumed, or revoked based on notifications about failed payments, completed payments, subscription changes, cancellations, and refunds. The developer documentation lists what each notification does.
- Owners and admins set this up.
Connect from the Stripe App
Stripe accounts with access to Usakey License Console can review licenses, purchases, records needing attention, product rules, diagnostics and purchase imports inside the Stripe Dashboard. A Usakey account and Workspace are required. Check pricing for test/production availability and usage limits.
-
Step 1Open the App in the intended Stripe account
Follow the installation instructions provided to install the App in the intended Stripe account or sandbox. A test version before publication is for invited testers. Open the App and check the Stripe account and test/live environment.
-
Step 2Choose the Usakey Workspace and permissions
Select Open connection screen in the App and sign in to Usakey. Review the Workspace, environment, allowed operations and automatic synchronization before connecting. App connections do not require entering an API key or webhook signing secret. Read only connections cannot change licenses or import purchases. Management operations also depend on your current Workspace role and plan limits.
One Workspace connects to one Stripe account and environment (test or live) at a time. To switch to another account or environment, for example from a sandbox to live, select Disconnect this workspace on the Stripe App connection settings page, then open the App in the Stripe account you are switching to and connect. Purchase and license records from the previous account are retained. Connecting that account again makes its earlier product rules available again. Do not delete purchases or licenses to switch connections.
-
Step 3Review the purchase-to-license mapping
Prepare a product and policy in Usakey, then map the Stripe price under Products and rules in the App. Before using automatic synchronization, verify notification receipt and the resulting license with a synthetic sandbox purchase. When using the App publisher's own live Stripe account, connect with Read only access and automatic synchronization off. Use a separate merchant account for purchase synchronization.
-
Step 4Review imports and changes
To import existing paid purchases, review the plan's sources, expiry and blocked reasons before confirming. Preparing a plan alone does not issue licenses. Importing does not charge, refund or change a Stripe contract. After a failure, check the current result before taking another action; do not repeat the payment or import.
A missing purchase, delivery or usage record does not prove an unpaid, unissued or unused purchase. Reload after a failed scan. The App does not display license keys. Buyer key delivery uses the supported receipt/save flow in your product app or an authorized seller delivery method.
Disconnecting stops App access and automatic synchronization while retaining existing licenses and purchase history. Uninstalling the App and deleting Usakey data are separate operations. See the Privacy Policy for data collection, display and retention, and the Terms for service conditions.
The following sections describe the existing restricted-key Stripe integration. App connections do not require adding those integration keys.
Prepare Stripe
-
Step 1Open the setup steps
In the left menu, open Payment and sales integrations under Sales, then select Connect Stripe on the Stripe card to see Connect your Stripe account.
To get help from an AI assistant (Claude Code, Codex, and so on), copy the prompt under Ask an AI assistant at the top of the page and paste it into the assistant. The AI walks you through the Stripe setup and the registration in Usakey one step at a time, then shows a plan for building purchasing into your product app. Restricted keys can only be created in the Stripe Dashboard, so you create and enter them yourself. Enter the key and signing secret on this page, never in the AI chat.

To do it yourself, Prepare Stripe first below lists what to do in Stripe, in order.
- Create a restricted key: in Stripe, go to Developers, then API keys, and create a restricted key with only the permissions shown on the page. You can't register a secret key (one that starts with sk_).
- Add a webhook destination: register the destination URL and the events shown on the page (completed checkout, failed payment, cancellation, refund, dispute, and so on) in Stripe, then find the signing secret (a value that starts with whsec_).

Register the connection in Usakey
-
Step 1Enter the restricted key and signing secret
Under Stripe account to connect further down the same page, enter a display name, the Stripe mode (sandbox for testing, or live), the restricted key, and the signing secret, then select Connect Stripe. Try it first with a Stripe sandbox and a Usakey test-environment product, and switch to live once it works.

-
Step 2Check the remaining steps after you register
-
Step 3Match Stripe prices to the licenses you issue
Select Add mapping in the steps, fill in Mapping name, Stripe Price ID, and Policy to issue, and save. For a test integration, you can map only policies for products in the test environment. If you leave License duration in days blank for a subscription policy, select the checkbox to confirm that the price recurs.

After you save, the mapping appears under Price and license mappings lower on the page. From then on, a purchase at that price issues the license you chose.

You can also add, change, and stop mappings through the Management API (
/mgmt/v1/stripe-integration/offerings) and AI assistant connections (MCP), with the same rules as this page. Reading needsproducts:read; changes needproducts:writeandlicenses:write. Use an API key or AI assistant connection of the integration's environment (test or production). An AI assistant shows the mapping and asks for your confirmation before it adds, changes, or stops one. Registering the integration, replacing the restricted key and signing secret, switching the environment, stopping the integration, and reconciling quarantined notifications are done on this page.
Add purchasing to your product
The purchase button and the code that hands the license key to the buyer go into your product. If you use an AI assistant, the Usakey Stripe integration skill can do this, including the implementation and tests for successful payments, failures, cancellations, and refunds (see connecting an AI assistant). Ask an AI assistant on the page after registration also has a prompt for this work.
Use the Usakey MCP skill to add Stripe purchasing to this app, with the license key delivered to the buyer after purchase.
If you build it yourself, see Issuing licenses on purchase in the developer documentation.
Purchaser emails and payment grace
Set these on a price mapping's edit page. You can also set them through the Management API and AI assistant connections (MCP): license_email_enabled and payment_grace_days.
- Email the license key to the purchaser after payment Once payment is confirmed, Usakey issues the license and emails the key once to the purchaser's email address in Stripe. It can issue a license even if the product app does not implement a purchase claim, such as when you sell through a Stripe Payment Link alone. When a trial converts, the key stays the same, so Usakey sends only a notice. Check the delivery status in Emails to the purchaser on the license details page. If the purchaser says the email did not arrive, resend it there, up to five times per license per day. You can send to a different address only from that page. For test products, Usakey sends emails only to members of the organization and reseller staff to avoid unintended recipients. For purchases without a claim challenge, such as Payment Link purchases, the handoff list on the Stripe integration page shows Email pending before sending and Emailed after sending. If the email fails, the list shows Seller hands over. Give the key to the purchaser.
- Payment grace days For a term policy, you can set a payment grace period of 0 to 90 days. If a renewal payment fails, Usakey emails the purchaser and keeps the license active for that many days from the invoice timestamp. Usakey sends another email as the deadline approaches. The same license remains active if the purchaser pays by the deadline. If the deadline passes without payment, the license expires and Usakey sends the purchaser a notice. If they pay later, they can use the same key again. A late payment failure notification does not extend the deadline.
- During the grace period, the deadline appears at the top of the license's details page. Your product app can read the deadline with the SDK's
payment_grace_untilto show a notice. That value is for display only. Do not use it to decide whether the product can be used. - Changing the number of days does not change the deadline of a grace period already under way. Grace does not apply to licenses stopped by a dispute or refund, or that you stopped in the Console.
After you start selling
- Cancel subscriptions in Stripe: Usakey never cancels a Stripe subscription. Revoking or suspending a license, archiving the customer or stopping the integration does not stop the subscription or the buyer's charges. Cancel the subscription in Stripe to stop charging. Purchased through on the license page shows whether it was bought through a subscription.
- Disputes (chargebacks): When a buyer disputes a payment with their card issuer, the license is suspended. If you lose, it is revoked (a dispute on only a renewal keeps it suspended); if you win, it becomes active again. If several payments of one subscription are disputed, it stays suspended until every dispute is over. If you registered the integration earlier, add
charge.dispute.createdandcharge.dispute.closedto the Stripe webhook. - Expired cards and failed payments: On mappings with 0 grace days, a failed renewal payment suspends the license at once, and a Stripe automatic retry that collects the payment makes it active again. To give purchasers time, see Purchaser emails and payment grace. Provide a page where purchasers can update their card, such as the Stripe Customer Portal.
- A buyer who pays twice: If the same purchase is paid twice, Usakey issues a second license but does not hand its key to the product app. The handoff list on the Stripe integration page shows Seller hands over; give the key to the buyer or refund the payment in Stripe. Usakey cannot stop the double payment itself.
- Stop selling a price: Deactivate the price and its Payment Links in Stripe first, then disable the price and license mapping. A price whose mapping is disabled issues no license even when it is paid.
- Subscription quantity: The quantity (seats) of a subscription is not used. To sell different numbers of devices or users, use a separate price and mapping for each.
For the full list of notifications and their effects, see State changes after purchase in the developer documentation.
Ask AI to implement or configure
Copy the instruction for your task and paste it into an AI assistant connected to MCP. You can also select the same task from the MCP prompt list. See the product integration page for connection steps. Add license checks to your app
License delivery after Stripe purchases
Use the Usakey MCP server and distributed skills for this task. First read the relevant skill VERSION, SKILL.md and references below. If the local MCP cannot serve resources, read the same files from the distribution ZIP advertised by the connected server. Confirm product, environment, language and existing settings; never invent missing values. Use the official SDK in product apps and never embed a Management API key. Keep management operations within the approved access and plan. Keep secrets out of chat, screens and logs. Write expected behavior as tests before implementation and report actual verification and unverified surfaces.
Implement license delivery linked to Stripe purchases. Separate seller configuration from app code; Usakey receives webhooks. Include the pre-purchase challenge, secure claim-verifier storage, recovery with the same Idempotency-Key, ACK only after key persistence, delayed payment and restart recovery. Never request secret keys or webhook secrets in chat.
References
skill://usakey-stripe-integration/references/seller-setup.md
skill://usakey-stripe-integration/references/purchase-flow.md
skill://usakey-stripe-integration/references/license-key-claim.md
skill://usakey-stripe-integration/references/payment-outcomes.md
skill://usakey-stripe-integration/references/test-matrix.md
Management tools for configuration and checks
get_stripe_integration
list_stripe_integration_events
Screenshots were taken in a test environment with sample data. IDs such as product IDs, license keys, and activation tokens are masked. Some details may change as we improve the screens.
