Prism/extensions/Kora
Kora
Issue Kora licenses automatically when customers buy from your Prism store.
The Kora module connects Prism to your Kora license server. Link a Prism product to a Kora product, and every purchase of it also issues a Kora license to the buyer.
It needs the Core module.
Setup
- In Kora, create an API token under API Tokens with the
products.view,customers.view,customers.createandlicenses.createscopes. - In Prism, open Configs > Kora and enter your Kora API URL and the API Token.
- Open Kora > Products and click Sync Now to pull your Kora products in.
- Edit a product under Store > Products and pick its Kora product.
Settings
| Setting | Default | What it does |
|---|---|---|
| Kora API URL | Your Kora API address, such as https://api.kora.example.com. | |
| API Token | The token from Kora. | |
| Sync Every | 5 minutes | How often to pull products from Kora. Never turns it off. |
| Issue Kora License on Purchase | On | Issue a Kora license when a linked product is bought. |
| Create Customer in Kora If Missing | On | Find the buyer in Kora by email, or create them, so the license has an owner. |
Pages
| Page | What it shows |
|---|---|
| Products | Every Kora product, its ID and the Prism product linked to it. Sync Now pulls them again. |
| Licenses | Every Kora license issued from a Prism purchase, with its key, product and customer. |
Permissions
| Permission | Allows |
|---|---|
kora.view | See the Kora pages. |
kora.edit | Sync products. |
How It Works
When a purchase completes, Prism issues its own license first. The Kora module then calls Kora for each linked product, creating the customer if needed, and records the Kora license next to the Prism one. Buying only addons for a product the customer already owns does not issue a new Kora license.
Deleting a Prism product unlinks its Kora product. If Kora is unreachable the purchase still completes and the error is shown in the console.