For vendors using Usakey

Sell with Stripe

Get paid through your own Stripe account and have Usakey issue and suspend licenses based on payments.

Plans
Personal Team Enterprise
Who does this
Owner Admin

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.

From purchase to receiving the license keyWhen a buyer selects the purchase button in your app, the app opens Stripe's checkout page and the buyer pays. The money goes to your Stripe account; Usakey never holds it. Stripe sends a payment notification to Usakey, and Usakey issues a license according to the price-to-license mapping. Your app then receives the license key from Usakey and activates the device with it.BuyerYour appYour StripeaccountUsakeySelect thepurchasebutton1Open thecheckout page2Pay (the moneygoes to your Stripe)3Paymentnotification(webhook)4Issue thelicense mappedto the price5Ask for the key6License key7Activate thedevice withthe key8From purchase to receiving the license keyWhen a buyer selects the purchase button in your app, the app opens Stripe's checkout page and the buyer pays. The money goes to your Stripe account; Usakey never holds it. Stripe sends a payment notification to Usakey, and Usakey issues a license according to the price-to-license mapping. Your app then receives the license key from Usakey and activates the device with it.1BuyerYour appSelect the purchase button2Your appYour Stripe accountOpen the checkout page3BuyerYour Stripe accountPay (the moneygoes to your Stripe)4Your Stripe accountUsakeyPayment notification(webhook)5UsakeyIssue the licensemapped to the price6Your appUsakeyAsk for the key7UsakeyYour appLicense key8Your appActivate the devicewith the key
You receive the money in your own Stripe account. Usakey issues the license when it gets the payment notification, and your app receives the key.
  • 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.
Stripe events and license statesWhen the first payment is confirmed, the license is issued and becomes active. When a renewal payment fails or is pending, the license is suspended, and it becomes active again when payment is confirmed. When a renewal isn't paid by the expiry date, the license expires, and it becomes active again on the same devices when the payment is confirmed. Cancellation or a full refund of the purchase revokes the license for good. A dispute (chargeback) suspends the license, and a win makes it active again. A dispute lost on a one-off purchase or first subscription payment revokes it. A renewal-only dispute loss keeps it suspended. Usakey uses the next subscription notification to follow the current Stripe contract; it resumes only if the contract is active and no other hold remains. A license you suspended yourself in the console isn't resumed by a payment.PurchaseFirstpaymentconfirmedExpiredDoesn'twork.Back afterpaymentActiveWorksSuspendedDoesn'twork.Back afterpaymentLicense issuedPaymentfailed orpending,renewalrefunded,disputeopened orrenewal-onlydispute lostPaymentconfirmed,disputewon, or nextsubscriptionnotificationconfirmingan activecontractRenewalnot paid bythe expiryPaymentconfirmedRevokedNevercomes backCanceled,purchase fullyrefunded, ordispute lost on aone-offpurchase or firstsubscriptionpaymentA license you suspended in the console isn'tresumed by a payment. You resume it yourselfStripe events and license statesWhen the first payment is confirmed, the license is issued and becomes active. When a renewal payment fails or is pending, the license is suspended, and it becomes active again when payment is confirmed. When a renewal isn't paid by the expiry date, the license expires, and it becomes active again on the same devices when the payment is confirmed. Cancellation or a full refund of the purchase revokes the license for good. A dispute (chargeback) suspends the license, and a win makes it active again. A dispute lost on a one-off purchase or first subscription payment revokes it. A renewal-only dispute loss keeps it suspended. Usakey uses the next subscription notification to follow the current Stripe contract; it resumes only if the contract is active and no other hold remains. A license you suspended yourself in the console isn't resumed by a payment.1PurchaseActiveLicense issued2ActiveSuspendedPayment failed or pending,renewal refunded, disputeopened or renewal-onlydispute lost3SuspendedActivePayment confirmed, disputewon, or next subscriptionnotification confirming anactive contract4ActiveExpiredRenewal not paidby the expiry5ExpiredActivePayment confirmed6ActiveRevokedCanceled, purchase fullyrefunded, or dispute loston a one-off purchase orfirst subscriptionpayment (from any state)A license you suspendedin the console isn'tresumed by a payment.You resume it yourself
A failed payment or a dispute suspends the license, and a late renewal lets it expire. A confirmed payment or won dispute brings it back. Cancellation, a full purchase refund, or a dispute lost on a one-off purchase or first subscription payment revokes it. After a renewal-only dispute loss, Usakey keeps it suspended and uses the next subscription notification to follow the current contract; it resumes only if the contract is active and no other hold remains. On mappings with payment grace days, the license stays active until the deadline even if a renewal payment fails.

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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

Values you pass between Stripe and the consoleIn Stripe, create a restricted key with only the permissions the console lists, and enter it in the connection details in the console. Register the endpoint URL shown in the console as a Stripe webhook, and enter the signing secret Stripe shows in the console. Create a product and a price in Stripe, and map its price ID to the policy to issue.Your StripeaccountUsakey(console)Restricted keyCreate a restrictedkey with only thelisted permissions1Enter the restricted key (rk_)in the connection details2Webhook notificationsRegister the endpointURL as a webhook3Enter the signing secret (whsec_)4Prices and licensesCreate a productand a price5Map the price ID tothe policy to issue6Values you pass between Stripe and the consoleIn Stripe, create a restricted key with only the permissions the console lists, and enter it in the connection details in the console. Register the endpoint URL shown in the console as a Stripe webhook, and enter the signing secret Stripe shows in the console. Create a product and a price in Stripe, and map its price ID to the policy to issue.Restricted key1Your Stripe accountCreate a restricted key withonly the listed permissions2Your Stripe accountUsakey (console)Enter the restricted key (rk_)in the connection detailsWebhook notifications3Usakey (console)Your Stripe accountRegister the endpointURL as a webhook4Your Stripe accountUsakey (console)Enter the signingsecret (whsec_)Prices and licenses5Your Stripe accountCreate a product and a price6Your Stripe accountUsakey (console)Map the price ID tothe policy to issue
The restricted key and the signing secret go from Stripe to the console, and the endpoint URL goes from the console to Stripe. Enter the key and the signing secret in the console, not in a chat with an AI.
  1. 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.

    The top of the Connect your Stripe account page. Under Ask an AI assistant, it shows the prompt to paste into Claude Code or Codex with a copy button, a note about connecting the Usakey MCP server, and a warning never to paste the key or signing secret into 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_).
    The Prepare Stripe first section. It lists the permissions the restricted key needs (read for Checkout Sessions, Subscriptions, Invoices, and Events; write for Customers; none for everything else), the webhook destination URL (partly masked in this image) with a copy button, the events to send, and the step for registering the connection details.

Register the connection in Usakey

  1. 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.

    The Stripe account to connect fields, with a display name for the test environment, the Test (Stripe sandbox) mode selected, and the restricted key and webhook signing secret entered (the values are hidden as you type). The Connect Stripe button is below.
  2. Step 2Check the remaining steps after you register

    After you register, the page changes to your Stripe integration. Steps to start selling lists what to do in Stripe and Usakey before you start selling, in order, and marks finished steps Complete. The webhook destination step completes when the first notification arrives from Stripe.

    The Stripe integration page after registration, showing Receiving events in Test mode and a notice to add dispute events. Steps to start selling shows 3 of 9 complete. Creating a restricted key is marked Complete, and adding the receiving URL as a webhook endpoint is marked Incomplete.
  3. 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.

    The screen for adding a price and license mapping. Below the Stripe integration it maps to (the test environment, in Test mode), it has the mapping name, the Stripe Price ID, the policy to issue (Standard (up to 3 devices) for Drawing Viewer (test)), a blank license duration, and a selected checkbox confirming that the price is a recurring Stripe subscription price.

    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.

    The list of price and license mappings, with the added mapping marked Active along with its product, policy, and Price ID, and Edit and Disable buttons.

    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 needs products:read; changes need products:write and licenses: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_until to 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.created and charge.dispute.closed to 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.