Selling with WooCommerce¶
OG Keystone does not take payments. WooCommerce takes them with whichever gateway you install (a card gateway, PayPal, or a crypto gateway). Keystone listens to the order and does the rest.
Set a product up¶
- In OG Keystone create the product and its tiers (Products and tiers) and, for a membership, a plan (Memberships).
- Edit the WooCommerce product. On the General tab there is an OG Keystone section:
- Issues licences: tick it and choose the Keystone product and the tier. One licence is issued per unit bought.
- Grants membership plan: choose a plan. One membership is granted per order line.
- Adds credit: choose money, points or AI credits, an amount per unit (money in pounds, for example
5or2.50) and, optionally, after how many days it expires.
- Save. A product can give any mix of the three.
Variable products and tiers¶
For a product sold in several licence levels, set the tier per variation (for example a Free variation, Starter, Standard, Professional, and the Life tiers). A shared licence attribute with one term per level keeps translations simple on a multilingual shop. On a connector store the product panel lists products, tiers and plans read from the licence server.
The Free tier¶
A zero-priced licensed variation is allowed only for signed-in customers; Keystone blocks it for guests so a free key is always tied to an account.
What each order status does¶
| Order status | What happens |
|---|---|
| Pending, on hold, failed | Nothing. An order waiting for a crypto payment sits on hold until the gateway marks it paid. |
| Processing or completed (paid) | Each product line gives what it is set up for. Moving from processing to completed, or being marked paid twice, gives nothing again. |
| Refunded or cancelled | What the order gave is taken back: licences disabled, memberships cancelled, credit reclaimed as far as the customer still has it (spent credit is not taken below zero). |
Every grant is recorded against the order, so a repeat, a race between two requests, or an order fulfilled by an earlier version never doubles up. A refunded order moved back to processing is not granted again; grant it by hand if that is what you want.
Order notes¶
An order note records what was given, for example "2 licences issued, 1 membership granted, 10.00 money credit added". It never contains a licence key.
Key delivery¶
When a key is issued the customer gets it three ways: the thank-you page (a pop-up), the key email, and My Account > Licences. The email has a Documentation line; point it at this site with the ogk_docs_url filter (OG Nexus does this with a small must-use plugin returning https://docs.og-nexus.com/).
Showing a key again later needs OG_KEYSTONE_ENC_KEY and a key that was stored recoverably, plus the let customers be shown their licence key switch.
Good to know¶
- The customer is the order's billing email. An order with no email still issues licences (to nobody) but cannot grant a membership or credit; the note says so.
- A customer who already holds a plan and buys it again gets the rest of the order but not a second membership.
- Partial refunds are not handled. Only a fully refunded or cancelled order takes things back.
- Subscription renewals from a WooCommerce subscriptions plugin are not synced yet; the engine records renewals through the API.
- Crypto gateways mark the order paid after the chain confirms. Check on staging which status your gateway sets, and what a refund means for a crypto payment, before going live.
Easy Digital Downloads¶
EDD is a rival licence gateway and is supported only as an optional add-on. It uses the same engine: a paid payment issues licences and a refund takes them back. Set it up on the Easy Digital Downloads admin page.