Skip to content

Key ideas

Word Meaning
Product Something you license, for example a plugin. Has a name and a slug such as og-aicore.
Tier A level of a product that sets how many sites a key allows, how long it lasts and which features it switches on. Standard tiers are Core, Pro and Ultimate; the OG Nexus store sells Free, Starter, Standard, Professional and the Life tiers (see Licences and tiers).
Licence (key) The secret string a customer pastes into a plugin. One key belongs to one product and tier and to an owner email.
Activation / site One WordPress site (or machine) where a key is in use. A key allows a fixed number. Deactivating a site frees its place.
Release A published version of a product (version number, changelog, file, checksum, minimum PHP and WordPress).
Membership Access for an account email on a plan, for a period. States: active, trial, complimentary, paused, expired, cancelled.
Plan What a membership is for. Has a slug, a name, status (active or archived) and an optional default length in days.
Restriction rule Ties a download, product, feature or page to a plan, optionally at a tier.
Subscription A recurring billing record: customer, plan, price, currency, monthly or yearly, status and dates.
Credit A balance a product can spend. Three kinds: money (counted in pence), points and ai (whole units).
Run mode How a site uses Keystone: standalone, server or connector. See Run modes.
Connector A store that may send signed requests to a licence server. Has a key id, a secret (shown once), scopes and optional allowed addresses.

How the pieces fit

  1. A customer buys a product in WooCommerce and pays through your gateway.
  2. When the order is paid, Keystone issues the licence, grants the membership and adds the credit that product is set up for.
  3. The customer receives the key (thank-you page, email and My Account > Licences).
  4. The customer pastes the key into the plugin. The plugin asks the licence server to activate it for that site.
  5. The plugin later asks for updates. The server answers with a signed download link that works for a few minutes.
  6. If the order is refunded or cancelled, Keystone takes it all back: licences disabled, memberships cancelled, credit reclaimed as far as it is unspent.

Licence states

State Meaning
Inactive Issued but not yet activated anywhere. Counts as usable (the buyer needs it to install and activate).
Active In use on at least one site and not past its expiry.
Sold / Delivered Handed to a customer; the key was emailed or shown.
Expired Past the expiry date plus any grace period.
Disabled Switched off by an administrator or by a refund.

A Free tier key is valid for the plugin's free features but does not unlock Pro features.