BuiltByBit
This page will show how to setup integration with BuiltByBit so that users can automatically receive their license keys upon purchase.
How it works
When a user downloads your premium resource, BuiltByBit will securely request a license key to insert into the jar from the MC License API. This then becomes an MC License managed license, meaning you can modify it in your dashboard and enforce settings. When the plugin gets enabled for the first time, validation takes place as normal.
This means that no intervention is required on your part to manage licenses, nor on the user’s part to request their license key. From the moment a user purchases your resource, they will have a license key ready to use infused into their plugin.
Setup
Firstly, generate a BuiltByBit Webhook Secret on the dashboard. This can be done through the Settings page on the dashboard. It will look like this:
Next, head to the BuiltByBit Placeholders page: https://builtbybit.com/placeholders/
Create a placeholder with the following details:
- Placeholder:
%%__BBB_LICENSE__%%
- Type:
External license key
- URL:
https://api.mclicense.org/builtbybit
- Secret: The secret you generated on the dashboard
Integration
Create a plugin using your BuiltByBit resource URL in the dashboard.
That’s it! MC License will now automatically manage licenses for your BuiltByBit resource and your users will get instant, licensed access after purchase.