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

  1. In Kora, create an API token under API Tokens with the products.view, customers.view, customers.create and licenses.create scopes.
  2. In Prism, open Configs > Kora and enter your Kora API URL and the API Token.
  3. Open Kora > Products and click Sync Now to pull your Kora products in.
  4. Edit a product under Store > Products and pick its Kora product.

Settings

SettingDefaultWhat it does
Kora API URLYour Kora API address, such as https://api.kora.example.com.
API TokenThe token from Kora.
Sync Every5 minutesHow often to pull products from Kora. Never turns it off.
Issue Kora License on PurchaseOnIssue a Kora license when a linked product is bought.
Create Customer in Kora If MissingOnFind the buyer in Kora by email, or create them, so the license has an owner.

Pages

PageWhat it shows
ProductsEvery Kora product, its ID and the Prism product linked to it. Sync Now pulls them again.
LicensesEvery Kora license issued from a Prism purchase, with its key, product and customer.

Permissions

PermissionAllows
kora.viewSee the Kora pages.
kora.editSync 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.