How to sell software license keys in WooCommerce
WooCommerce can sell a virtual software download, but it does not generate, validate or track licence keys by itself. For a basic shop, you can send pre-generated keys manually; for automatic delivery and activation limits, use a licensing add-on connected to your software.
- 01Decide how licences work
- 02Create the software product
- 03Set download access rules
- 04Handle keys manually if needed
- 05Add automatic licence management
- 06Connect and test the software
What you need
- A WooCommerce store with a working payment gateway
- Admin access to WordPress and WooCommerce
- The software download and its licence rules
- A licensing add-on or custom integration if keys must be generated and activated automatically
Decide how licences work
Before changing WooCommerce, decide whether each purchase gets a pre-generated key or a key created at checkout. Also define whether keys expire, how many installations each key allows, whether customers can deactivate a device, and how upgrades or renewals work.
If your app never contacts a licensing server, WooCommerce cannot enforce activation limits. You will need either an API in your software and store, or a licensing service that provides one.
Create the software product
Go to Products > Add New and create the item customers will buy. Mark it as Virtual if there is no physical delivery, and mark it as Downloadable if customers should receive an installer or archive. Add the price, product description and the software file.
WooCommerce sends downloadable files through the order email and, for logged-in customers, the account downloads area. Upload protected files through the product editor rather than relying on a public Media Library URL.
Set download access rules
Open WooCommerce > Settings > Products > Downloadable products. Choose a download method, decide whether downloads require login, and decide whether access is granted after payment or only when the order reaches Completed.
This is a common Friday problem: a payment can succeed while an order remains in Processing, so a customer may receive neither the file nor the key when your rules wait for completion. Test the exact status produced by each payment gateway.
Handle keys manually if needed
WooCommerce alone is suitable for a small catalogue of pre-generated keys only if you are prepared to assign and send each key yourself. Keep the key inventory in a controlled system, record which order received each key, and send it through the order email or a private order note.
This route does not automatically prevent reuse, count activations, revoke compromised keys or connect a key to your software. Once order volume grows, manual fulfilment becomes the part most likely to cause duplicate or missing keys.
Add automatic licence management
For automatic key generation and activation tracking, install a licensing extension that adds those functions to WooCommerce. Configure its product identifier, key format or prefix, activation limit, expiry rules and customer email content. If you use pre-generated keys instead, import the key stock and enable stock-based assignment.
The WooCommerce Software Add-on is one option for this route. Its documented workflow adds a software product type, licence-key settings, order-level key records, activation reporting and API requests for software integration.
Connect and test the software
If your software checks licences, connect it to the add-on's API or to the licensing system you selected. Test a valid key, an invalid key, a key at its activation limit, a deactivated installation, an expired key and a revoked key. Also test renewal, refund and cancellation behaviour.
Place real test orders with the payment methods you offer. Confirm that the key is generated once, appears in the order, reaches the customer, activates in the software and remains available to support staff. Do not treat an emailed key as proof of activation; the software must verify it against the licensing service.
Let WooCommerce Software Add-on do it
Automates license-key generation, delivery, and activation tracking for WooCommerce stores selling software downloads.
Sources
- woocommerce.com /document/digital-downloadable-product-handling/?utm_source=…
- woocommerce.com /document/software-add-on/?utm_source=openai
Questions
- Can WooCommerce sell software licence keys without a plugin?
- WooCommerce can sell the software file and let you send a pre-generated key manually, but it does not provide complete licence management by itself. Automatic generation, validation, activation limits, revocation and usage tracking require a licensing extension or custom development. The manual route is reasonable for low order volume, but it becomes difficult to audit as sales increase.
- How does the customer receive the software key?
- The key is normally placed in the order-complete email, an order confirmation area, the customer account, or a protected download document. The exact location depends on your licensing extension. Make sure the key is not exposed on a public product page, and check whether your payment gateway leaves successful orders in Processing instead of Completed.
- Can I limit how many computers use one key?
- Yes, but the limit must be enforced by a licensing system that your software can contact. Set the maximum activation count, store an identifier for each installation, and provide a way to deactivate or reset an installation. A key copied into an email cannot enforce a computer limit on its own.
- Should I sell the installer and licence key as one product?
- Usually, yes. Mark the product as virtual and downloadable when there is no physical delivery, attach the installer, and configure the licensing system to issue the key for the same order. If the installer and key have different renewal or access rules, separate products may be easier to manage.
- What is the fast way to sell software licence keys in WooCommerce?
- Install a WooCommerce licensing add-on, create the software product, set its activation rules, attach the download, and run a complete test order. The WooCommerce Software Add-on is designed for this workflow, including key generation, delivery, activation tracking and API-based checks for compatible software.