Handy Download Sales: Documentation
Everything you need to install, set up and use Handy Download Sales. If anything here isn't clear, ask us – we'd rather improve the page than leave you guessing.
Requirements
| Joomla | 6.0 or later |
|---|---|
| PHP | 8.3 or later with sodium (encryption of secrets, licence signatures), zip (release packages), json, mbstring |
| Database | MySQL 8 / MariaDB 10.4 or later, or PostgreSQL |
| HTTPS | required for live payments, recommended for the whole shop |
| Payments | a Stripe account for cards and subscriptions (test keys work in test mode); optionally a PayPal REST app; bank transfer needs no account |
| Licensing | Handy Extension Licensing 1.0+ on the same site or a licence server, for licensed products — 1.1 for subscriptions and licence transfers |
| Joomla's mail settings must work: customers receive their access links by e-mail |
Installation
- If you sell licensed products, install Handy Extension Licensing on this site first (or have the API token of your licence server ready).
- System → Install → Extensions: upload
pkg_handydownloadsales-1.1.1.zipfrom My downloads.
The package installs the component (with the official Stripe PHP SDK), the System and Web Services plugins (both enabled) and the Shop Links module. The installer creates the tables, 18 e-mail templates, the category Uncategorised, an example tax rate (only used when you switch tax on) and a protected download folder.
First set-up
- Options (Components → Handy Download Sales → Options):
- Store: name, e-mail (sender and reply address), address, support page, terms / privacy / refund pages, default currency, store country, order number prefix.
- Checkout: guest checkout, cart, which details to collect, terms acceptance, linking earlier purchases to a user account (by a confirmation link; automatic linking by e-mail address is off by default because Joomla users can change their address without confirming it), lifetime of the payment page, cancelling unpaid orders.
- Payments, PayPal & Bank Transfer: see below.
- Sales: discount codes, grace period for subscriptions, reviews. Invoices: numbers, VAT number, footer, attachment.
- Tax: none, the shop's tax rates or Stripe Tax; prices with or without tax; reverse charge.
- Downloads: download folder (preferably outside the web root), link lifetime and uses, download limit, upload size, file types.
- Licensing: none, Handy Extension Licensing on this site, or on a licence server (address and API token); revoke on refund, suspend during disputes, domain changes, transfer requests.
- Licence: your own Handy Download Sales licence key (live payments and updates).
- Categories and Products with their editions and prices; add releases and files.
- Menu items: Handy Download Sales → Product Catalogue (or Product Category / Single Product) and Customer Account (“My downloads”); Cart and Checkout menu items give nicer URLs.
- Optionally publish the module Handy Download Sales – Shop Links (cart with item count, checkout, my downloads).
- Check the dashboard: it lists every set-up problem (no payment provider, test mode, missing Stripe webhook — with a button that creates it —, licensing system not available, download folder not writable, System plugin disabled).
Stripe
- Keys: in the Stripe Dashboard (Developers → API keys) copy the publishable and secret keys for test mode (
pk_test_…,sk_test_…) and, to go live, live mode. A restricted key (rk_…) works too. Enter them in Options → Payments; secrets are stored encrypted and never shown again (leave empty to keep,-to remove). - Webhook: the quickest way is the dashboard button Create the webhook endpoint in Stripe — the shop creates the endpoint with every event it needs and stores the signing secret. By hand: add an endpoint for
https://www.example.com/index.php?option=com_handydownloadsales&task=webhook.stripe&format=raw(your domain) with API version 2026-11-18.endive and the events listed in the options, and copy itswhsec_…secret. - Test: with Mode: Test use Stripe's test cards, e.g.
4242 4242 4242 4242(any future date, any CVC);4000 0000 0000 0002is declined. - Live: switch the mode, enter the live keys and webhook secret — live payments need the shop's licence with the feature live payments.
Every webhook event is processed once; of several parallel notifications exactly one completes the order. The return page never completes an order by itself — the shop asks Stripe first.
PayPal and bank transfer
PayPal: create a REST app in the PayPal Developer Dashboard (sandbox and live), enter its Client ID and Secret, add a webhook for …task=webhook.paypal&format=raw with the events Checkout order approved, Payment capture completed / pending / denied / refunded / reversed, copy the Webhook ID, choose the mode and switch PayPal on.
Bank transfer: enter your payment instructions with the placeholders {REFERENCE}, {AMOUNT} and {STORE} and a payment period (default 14 days). The customer sees the instructions on the order page and in the e-mail; when the money arrives, open the order and press Mark as Paid.
Products and editions
| Details | title, alias (used in the URL), category, product type (Standard or Bundle), short description, description, image |
|---|---|
| Editions and Prices | one row per edition: name, price (0 = free), currency, promotional price and period, licence plan, billing (one-time, monthly or yearly subscription), maximum quantity (one licence per unit), bundle contents, SKU, published |
| Licensing | the licensing product whose licences are issued (its plans are listed), ask for the domain at the checkout, publish releases as updates |
| Releases and Files | the product's releases and files |
| Requirements & Reviews | products the customer must own or buy in the same order; reviews and licence transfers allowed |
| Publishing | status, sales enabled, featured, available from / until, tax class, download limit, access level, language, meta description |
- A free product has editions with price 0; customers get it through the checkout with their e-mail address.
- A bundle lists editions of other products; the buyer gets one item, licence and download per contained edition.
- Products with orders cannot be deleted: unpublish them or set Sales enabled to No — existing customers keep their downloads. Unpublish an edition that has been ordered rather than removing it.
Releases and files
Releases → New (or Add Release on the product): version, release date, status — Stable releases are offered as updates; Release candidate and Beta are downloadable but not offered as updates; Archived releases stay downloadable — Latest release, Needs update entitlement, minimum Joomla and PHP versions, the package ZIP (for Joomla extensions its manifest version must equal the release version) and release notes.
Toolbar: Publish Update (automatic for stable releases of products with Publish releases as updates) and Notify Customers. Files are documentation and resources, either for customers (account area) or for everybody (also linked on the product page).
Licensing
- In Handy Extension Licensing create the product (element of your extension, key prefix) with its features (e.g.
pro,updates) and plans (e.g.single: 1 domain, 12 months of updates;agency: more domains). - In Handy Download Sales choose it as Licensing Product of your product and enter the plan code as Licence Plan of each edition — the product form lists the plans and refuses unknown codes.
free with no features). An edition with an empty plan code gets the product's first plan.
Licences are issued for free orders at once, for paid orders when the payment is confirmed, for manual orders when they are completed; one per unit, one per contained edition of a bundle. Issuing is idempotent per order item. A full refund revokes, a dispute suspends; administrators can suspend, reinstate, revoke, attach and issue missing licences.
If the licensing system cannot be reached, the paid order waits as Processing; Orders → Issue Missing Licences completes it later.
Joomla updates for your extensions
Add the update server of your Handy Extension Licensing and the Download Key element to the manifest of the extension you sell:
<updateservers>
<server type="extension" priority="1" name="My Extension">https://www.example.com/index.php?option=com_handylicensing&task=updates.xml&product=pkg_myextension</server>
</updateservers>
<dlid prefix="dlid=" suffix=""/>
Publishing a stable release copies the ZIP to Handy Extension Licensing, which reads the manifest and serves it to sites whose key is active, belongs to the product, includes updates and whose update period has not ended — everybody else gets HTTP 403, and every attempt is logged.
Orders and refunds
Statuses: Pending (waiting for payment), Processing (paid, licences not yet issued), Completed, Failed, Cancelled, Refunded; payment statuses: unpaid, free, paid, partially refunded, refunded, payment failed, disputed. Actions on an order: Mark as Paid, Refund (an amount, or the rest; through Stripe or PayPal; credit note), Issue Invoice, Cancel Order, Resend Confirmation, Issue Missing Licences, Attach a licence, Move to another customer, Add Note.
New Order creates an order for an existing or new customer: Complimentary (completed at once, e.g. a licence for a reviewer) or Paid otherwise (waits for Mark as Paid). Subscriptions have their own list with Read from Stripe, Cancel at the end of the period, Continue and Cancel now.
Customers
Customers are created by the checkout (one per e-mail address) or by hand; registered users link earlier purchases to their account by confirming their e-mail address with a link the account area sends them. The customer page shows contact details, notes, status and the history of orders, licences, payments and downloads, with Send Access Link, Invalidate Links and New Order.
What customers see is described on our Help and Support page — you can use it as a model for your own customer help.
Tax and invoices
Tax rates (used with Tax calculation: Tax rates of this shop): one rate per country (ISO code or *) and tax class (standard, reduced, zero, exempt); prices gross or net; Reverse Charge for customers in another country with a VAT number (not validated online). Stripe Tax lets Stripe calculate tax on the payment page. Check your country's VAT rules for digital products with a tax adviser.
Invoices (Options → Invoices): on/off, store VAT number, prefixes such as INV-{YEAR}- and CN-{YEAR}-, digits, PDF attachment, footer. An invoice is issued for every completed paid order and renewal, a credit note for every refund, with gap-free numbers and a stored snapshot.
Permissions and e-mails
| Manage Orders | orders, payments, download log, manual orders, notes, subscriptions, invoices |
|---|---|
| Refund Payments | refunds and cancelling subscriptions (with Manage Orders) |
| Manage Customers | customers, access links, moving orders |
| Manage Licences | licences and their actions, transfer requests |
| Coupons / Reviews | discount codes / moderating and answering reviews |
| View Reports / Export Data / View Audit Log | sales figures and reports / CSV exports with personal data / the audit log |
E-mails: System → Mail Templates → Handy Download Sales — 18 templates, each editable per language (plain text and HTML), with the available tags listed.
API
Joomla Web Services at https://www.example.com/api/index.php/v1/handydownloadsales/<resource> with a Joomla API token (X-Joomla-Token, Accept: application/vnd.api+json). Create a dedicated user per integration with Access Web Services, Access Administration Interface of Handy Download Sales and the permission of the route.
| Route | Methods | Permission |
|---|---|---|
products | GET | public (option), otherwise Access Administration Interface |
orders | GET, POST | Manage Orders |
customers | GET | Manage Customers |
coupons | GET, POST, PATCH, DELETE | Coupons |
subscriptions, invoices, entitlements | GET | Manage Orders |
reviews | GET | Reviews |
reports/sales | GET | View Reports |
Maintenance, upgrade, uninstall
No cron job needed: the System plugin runs the maintenance after page requests (default at most every 60 minutes): unpaid orders are cancelled, expired tokens and links removed, overdue bank transfer orders cancelled, missed subscription changes read from Stripe.
Upgrade: install the new package over the old one, or use Joomla's update manager with your licence key. Data, options and encrypted secrets are kept; changed mail templates are kept. From 1.0 to 1.1: add the new Stripe webhook events (or create a new endpoint from the dashboard) before selling subscriptions, check Options → Invoices, and update Handy Extension Licensing to 1.1.
Uninstall: uninstall the package Handy Download Sales Package. This removes all shop tables — export reports and customers first. Kept: a download folder outside the component, the product categories, subscriptions in Stripe (cancel them in Stripe first) and all licences in Handy Extension Licensing.
Going live checklist
- HTTPS on the whole site; Joomla's e-mail works.
- Store details, terms, privacy and refund pages in the options; tax settings checked.
- A test purchase and, if you sell them, a test subscription in test mode — with real webhook endpoints.
- Your Handy Download Sales licence key with live payments in Options → Licence.
- Live keys and a live webhook secret; Mode: Live.
- The download folder outside the web root; the dashboard shows no set-up problems.
- For licensed products: the products and plans exist in Handy Extension Licensing and your release builds contain its public key and update URL.