1
Get the webhook URL
- Go to the Integrations page in SunLicense.
- Select your product.
- Copy the Webhook URL. It looks like this:
2
Create a placeholder in BuiltByBit
- Open the BuiltByBit Placeholders page.
- Click Create New Placeholder.
- Set the placeholder name to something like:
- Set Type to
External License Key. - Paste the copied Webhook URL in the URL field.
- Copy the Secret Key from the SunLicense Integrations page and paste it in BuiltByBit.
- Save the placeholder.
3
Use the placeholder in your product
When using the SunLicense API in your product, assign the placeholder string to the license key variable. Example in Java:
4
Automatic license assignment
- When users download your product, BuiltByBit automatically creates a new license in SunLicense.
- The placeholder
%%__MyProduct_License__%%is replaced with the user’s actual license key. - The user’s download is validated automatically, without them entering a license key.