Products
Digital files and license keys
Digital products deliver a file through each buyer's account and order links. With Commerce Pro, prices can also issue license keys with a site limit, and themes and plugins you sell can activate keys and get updates from your store.
The file buyers download
On a digital product's Files and updates tab, upload the File buyers download. Files are stored outside the public web folder and are only served to the buyer: from the receipt, the order email and Downloads in their account. A download link can't be shared to get the file without the order.
If your host keeps the private folder somewhere else, set KUFI_COMMERCE_FILES_DIR in wp-config.php to the folder's full path.
License keys (Commerce Pro)
Set License sites on a price to the number of sites a key works on. Each paid order of that price creates a key, shown on the receipt, in the email and under License keys in the buyer's account. Keys look like XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX.
Under Kufi → Commerce → License keys you can:
- Find a key by the key, its last 4 characters or the buyer's email.
- Disable or enable it, and remove sites so the buyer can activate elsewhere.
- Issue a key by hand, for example for a partner or a replacement.
A refunded order disables its keys.
Activation for software you sell
Your theme or plugin activates keys against your store at /wp-json/kufi-commerce/v1/license/activate, with validate and deactivate next to it. Requests and answers have the same shape as the Lemon Squeezy License API (license_key, instance_name, instance_id), so a client already written for it only needs your store's address.
Updates for software you sell
Fill in the Software updates part of the Files and updates tab: version, what changed, and the WordPress and PHP requirements. Licensed sites send a POST to /wp-json/kufi-commerce/v1/update with the product slug, their key and site id, and get the latest version with a download link that works for 12 hours. The key travels in the request body, never in the address.
These addresses stay open even when Kufi's REST lockdown is on.
More in Products
Still need help?
Tell us what you are trying to do and what you see. We read every message.