Skip to content
Cybersalt Docs

This page is for developers who sell their own extensions through Release Manager. It shows how your customers can link their site to their account on your store, so that your paid updates install from Joomla's own update screen. For setting up the store itself, see the Release Manager documentation.

Start here

You don't need to read this whole page. In your store's Release Manager, go to Packages and click Add licensing to your extension under your package. That screen has the routes below with your store URL, element and product name already filled in, and it checks that the package's settings are ready. It needs Release Manager 1.16.0 or later.

The Add licensing to your extension screen: a checklist of the package's settings, the form that generates a kit, a prompt for an AI assistant, and the paid service last ⤢ Click to enlarge
Every route on one screen, filled in for one package.

Pick a route

Whichever route you take, your customer does the same thing: they type the email they bought with into your extension. The site registers with your store, and updates install from Joomla's update screen. There are no keys for them to get and nothing to paste.

RouteWhat you doCost
1. Generated kit Download a zip, copy files in, paste a few lines Included with your licence
2. AI assistant Paste a prompt into Claude Code or similar, then review Included with your licence
3. We do it Send us your extension A fixed fee

Where your customer enters their email depends on what you sell:

Your extensionWhere customers link
A componentA Link your account screen in its menu
A pluginA Link your account tab in its settings
A moduleA Link your account tab in its settings
Anything else, such as a template or a libraryThe same tab, on a small plugin you sell with it in a package

Route 1: a generated kit

On the Add licensing screen, fill in your extension's type, element and namespace and click Download the kit. You get a zip of ready-made files with your details in them, plus a README with the exact steps. It only adds files: none of your existing code changes except your manifest and install script.

  1. Copy the files in. For a component, the new files are a client class, a panel, a small controller, a Link your account screen and the panel's text in 17 languages. For a plugin or module, they are the client, the panel, a form field and the same language files.
  2. Paste the manifest lines from snippets/manifest.xml. They add the menu entry or settings tab and the update server.
  3. Paste the install-script lines from snippets/postflight.php. Joomla rebuilds the update site when your extension updates, and these put the link back in its address. They also tell a new customer where to enter their email, right after they install.
  4. For a plugin, add one method from snippets/plugin-method.php. The panel posts through Joomla's com_ajax, so the plugin has to be enabled to link. A module needs nothing here.
A module's edit screen open on its Link your account tab, with an email box and a Link account button ⤢ Click to enlarge
The tab the kit adds to a module's settings. A plugin's looks the same.

Change the wording in the kit's .account.ini file and the layout in account-panel.php as much as you like. The link is kept in your extension's custom_data column in #__extensions, under the key csrm_account, so saving your Options and updating your extension both leave it alone.

Prefer the command line? The same generator is in the public client kit, along with finished examples of a component, a plugin, a module and a template.

Modules

The tab is on every copy of your module, published or not, and it works on the screen for a new copy before it's saved. The link belongs to the module rather than to one copy, so a site only links once. It works for site and administrator modules.

Extensions with no namespace

A plugin or module written the older way can use the kit too. Add the <namespace> line from snippets/manifest.xml: it only lets Joomla find the kit's new classes, and your own code keeps working without changes. A component with no namespace needs the route below.

Templates, libraries and anything else

A template or a library has no screen of its own for the panel, so a small plugin carries it. You sell the two together in a package, and your customer links under System → Plugins. Your package's install script turns the plugin on. The steps and a finished example are in the public client kit.

Route 2: let an AI assistant do it

Open your extension's code in Claude Code or a similar coding assistant and paste the prompt from the Add licensing screen. It looks like this:

Add licence linking to this Joomla extension by following the instructions at
https://raw.githubusercontent.com/cybersalt/release-manager-client-kit/main/INTEGRATE.md

Store URL: https://your-store.example
Store name: Your Store
Package element: pkg_myextension
Feed key: (none)
Product name: My Extension

The instructions tell the assistant how to read your manifest, generate and apply the kit, and what not to touch. It reports what it changed and how to test it, and it doesn't commit or publish anything unless you ask. Review its changes as you would anyone's.

Route 3: have us do it

If you'd still rather not touch the code, Cybersalt can add it to your extension and test it against your store for a fixed fee. See the integration service.

The store's side

Whichever route you take, the package needs these. The Add licensing screen shows which are missing.

  • Public / Free Extension set to No, and the Allowed User Groups your membership plan puts buyers into.
  • Renewal URL and Renewable User Groups, so expired customers get a Renew button instead of a dead end.
  • Sign-Up URL, for the Buy button people see when they aren't customers yet. Options has a default for packages without one.
  • Account Link Location: where your panel is, written to fit a sentence (for example in Components > My Extension > Link your account). Joomla's update screen uses it to tell a customer where to link. Options has a default for this too.
  • A Store Name in Options, if customers know your store by something other than your site's name.
  • Release notes on every version, with headings such as Security, Fixed, New and Changed. Joomla's Changelog button shows them in those groups. Mark a version that fixes a security problem as a Security release, so Joomla shows the badge. In your manifest, point <changelogurl> at index.php?option=com_csreleasemanager&amp;task=api.changelogxml&amp;format=raw&amp;element= plus your element, on one line.

What your customer sees

Answer from the storePanel shows
activeGreen badge; updates arrive under System → Update → Extensions.
lapsedThe store's message and a Renew button (the package's Renewal URL).
not_a_memberThe store's message and a Buy button (the package's Sign-Up URL, the store's Default Sign-Up URL, or the Renewal URL).
over_limitEvery site the licence allows is in use.
blacklistedBlocked; contact support. No retry form.
inactiveThe account owner deactivated this site; they can reactivate it under My Installations. The kit shows this as not linked, with the store's message.

Why linking needs no email confirmation

Anyone can type any address into the panel, and nothing asks them to confirm they own it. That is on purpose. Your extension is open source, so nobody can be stopped from running it, and a confirmation step would only make it harder for honest customers. Linking gives you and the address's owner what's needed to deal with it instead:

  • The address's owner finds out. They get an email naming the domain as soon as a site links to their address. On My Installations they can deactivate or remove the site, or report it as one they don't recognise, and the domain can't link to that address again.
  • You get a lead. Every site that registers shows under Installations with its domain, even if it never pays. Filter by status or by Update Access to find sites using your extension without a licence, and write to them about buying one.
  • Only entitled addresses get updates. A link only opens updates when the address belongs to a customer in an allowed group, and site limits count against that customer.

Testing it

The kit includes test-link.sh, filled in for your store: sh test-link.sh This email address is being protected from spambots. You need JavaScript enabled to view it.. It runs these same calls, which you can also run by hand. Replace the store, element and email:

STORE=https://your-store.example
ID=20261030120000_test.example.com_0123456789abcdef
HASH=$(printf %s "This email address is being protected from spambots. You need JavaScript enabled to view it." | sha256sum | cut -d' ' -f1)

curl -s -H "Content-Type: application/json" \
  -d "{\"installation_id\":\"$ID\",\"package_element\":\"pkg_myextension\",\"domain\":\"test.example.com\"}" \
  "$STORE/index.php?option=com_csreleasemanager&task=api.register&format=json"

curl -s -H "Content-Type: application/json" \
  -d "{\"installation_id\":\"$ID\",\"email_hash\":\"$HASH\",\"email\":\"This email address is being protected from spambots. You need JavaScript enabled to view it.\"}" \
  "$STORE/index.php?option=com_csreleasemanager&task=api.linkemail&format=json"

curl -s "$STORE/index.php?option=com_csreleasemanager&task=api.verifyaccess&format=json&dlid=$ID:$HASH"

curl -s "$STORE/index.php?option=com_csreleasemanager&task=api.updatexml&format=raw&element=pkg_myextension&dlid=$ID:$HASH"

For an entitled email, verifyaccess answers "state":"active" and the update feed's download URL carries the dlid. Delete the test installation from Installations afterwards.

Rules worth keeping

The kit already does all of this. Keep it that way if you change the client, or do the same if you write your own.

  • Don't declare a download key. A <dlid> tag in your manifest makes Joomla show your customers a "Download Key missing" warning and a box to paste one into. They link by email, so leave it out.
  • Only touch your own update site. Match it by your store's host and your element. Other vendors' extensions on the same site have their own links.
  • Escape the store's messages. They are shown to an administrator in your customer's Joomla, and Joomla prints system messages as HTML.
  • Save the installation ID only after the store accepts it. An ID saved before a failed registration leaves the site sending an ID the store has never seen.
  • Make the random part long. The timestamp and domain can be guessed and the email hash is easy to work out, so the random part is the link's only secret. The client uses 16 hex characters.
  • Put the link back after updates at the end of the request. Joomla rebuilds the update site after your postflight() has run. It keeps the link in extra_query but not in the address, so writing it in postflight() itself does nothing for remote managers.

Writing your own client

If none of the routes suit, these are the calls, all on your store at index.php?option=com_csreleasemanager&format=json&task=…:

  1. Make an installation ID in the form <digits>_<domain>_<random hex> (up to 100 characters).
  2. api.register: POST JSON {"installation_id", "package_element", "domain"}. Save the ID when this returns 200 or 201.
  3. api.linkemail: POST JSON {"installation_id", "email_hash", "email"}, where the hash is SHA-256 of the lower-cased email.
  4. api.verifyaccess&dlid=<id>:<hash>: the status to show.
  5. Write dlid=<id>:<hash> to your update site's extra_query, and append it to the update site's location too: Joomla only sends extra_query with the download, and remote managers such as mySites.guru need it in the feed URL.

Getting help

Ask through the Cybersalt support form, with your store URL and your package's element.

Add licensing to your extension — click anywhere to closeClose × The Add licensing to your extension screen Link your account on a module — click anywhere to closeClose × The Link your account tab on a module's edit screen