Polymart Integration

When a customer purchases your plugin on Polymart, they receive a JAR with a license key already injected inside. ILicence verifies that key automatically. No manual work for you or the buyer.

How It Works

Polymart uses a placeholder system. When you upload your plugin JAR, you include the placeholder %%__LICENSE__%% in your code. When a customer downloads the plugin, Polymart replaces that placeholder with a real license key unique to that buyer.

1.Customer buys your plugin on Polymart
2.Customer downloads the JAR. Polymart injects %%__LICENSE__%% with a real key
3.Customer installs the plugin on their server
4.Plugin starts, ILicence SDK verifies the key
5.ILicence calls Polymart API to confirm the purchase is valid
6.License becomes managed by ILicence (visible in your dashboard)

Setup (Step by Step)

1

Get your Polymart API Key

Go to polymart.org/account, scroll to the API Keys section. Click Make a new API Key. Give it a name like "ILicence". Make sure it has the list resources & buyers permission.

2

Add the API key to ILicence

In your ILicence dashboard, go to Settings. Paste your Polymart API Key in the Polymart API Key field. Save.

3

Create your plugin with Polymart URL

Create a plugin in ILicence (or edit an existing one). In the Marketplace Automation section, paste your Polymart resource URL (e.g., https://polymart.org/resource/my-plugin.1234).

4

Configure default license settings

Set the default license type (Permanent or Time Limited), max servers, and duration. These settings will be used for every license automatically created from Polymart purchases.

5

Use the placeholder in your plugin code

In your plugin's Java code, use the Polymart placeholder as the license key:

// The placeholder gets replaced with a real key at download time
ILicence.verify(this, "%%__LICENSE__%%", "my-plugin");
6

Upload your plugin to Polymart

Upload the compiled JAR to Polymart as a premium resource. That's it. Every buyer will automatically get a verified license.

Available Polymart Placeholders

Polymart replaces these placeholders in your JAR at download time:

PlaceholderDescription
%%__LICENSE__%%License key (Premium resources only)
%%__USER__%%Downloader's Polymart user ID
%%__USERNAME__%%Downloader's Polymart username
%%__PRODUCT__%%Your resource ID on Polymart
%%__NONCE__%%Unique identifier per download
%%__TIMESTAMP__%%Download timestamp (epoch)

Recommended

Use %%__LICENSE__%% for license verification. The other placeholders are useful for watermarking or tracking but are not needed for basic license protection.