Solved validate 3rd party licence key in HISE plugin?
-
Hey there, i am using a store platform named lemonsqueezy since a year now and i am very happy with that. The platform offers generating licence keys.
How am i able to have a window inside my VST that maybe asks for email but definitely the generated key?
I would pay for someone who is able to setup something like this.
-
-
@Straticah AWS Lambda integrates with AWS DynamoDB. AWS Lambda lets you write serverless code in many languages. In the AWS dashboard for Lambda you generate an API endpoint that you can call from within HISE, and in Lambda you write functions that handle the request and process the code, interact with DynamoDB to store and retrieve data. It's all very well documented, and even better, ChatGPT can help you easily set it all up. For Lambda code, I suggest using Python because NodeJS can have major differences between versions so ChatGPT might end up tripping (unless you know NodeJS).
You can create another function that can handle post requests from lemonsqueezy that are fired upon order completion (zapier or however they do it) that automatically write to your database. Or you can (from Lambda, not from HISE) call the lemonsqueezy api to check for the user's email address and whether the entered key matches the one in lemonsqueezy order (this is probably simpler). In that case, you don't have to keep your database at all, unless you want to keep track of key activations, etc. Gonna take you a day or two to get a hang of things, but it's all pretty intuitive.
Just remember, you're not writing any API keys into HISE. You just call a public Lambda API endpoint that you create for your function, which is automatically rate limited by AWS (so you don't have to worry about abuse), and then you do all the logic there (because no one will ever see that other than you, whereas your plugin, once distributed, is out there.
-
@Straticah Unless you're already comfortable with the AWS ecosystem it might be overkill for something this simple.
You could check out Trigger.dev or other lightweight serverless function apps.
Or you could roll your own license validation using an automation platform like Make (https://make.com) very easily.
All you really need is a way to make a POST request with the license key, which will return an "active/inactive" response. You should also compare the email associated with the license with the email supplied by the user.
EDIT: looks like you might even be able to do all this within HISE using the
Server.callWithPOST()
function.
https://docs.hise.dev/scripting/scripting-api/server/index.html#callwithpost -
@dannytaurus @aaronventure thanks a lot guys! I use no code aws for hosting website, domain etc so i might look into that and see if i find someone who can help on freelance basis.
Learning "look and feel" was the only programming i had time to learn for now ^^ sadly it does not help me much in this case :)
-
@Straticah said in validate 3rd party licence key in HISE plugin?:
@dannytaurus @aaronventure thanks a lot guys! I use no code aws for hosting website, domain etc so i might look into that and see if i find someone who can help on freelance basis.
Learning "look and feel" was the only programming i had time to learn for now ^^ sadly it does not help me much in this case :)
Looking at the API you point at this should probably be quite do-able using the HISE Server.callWithPOST() as @dannytaurus suggests.
-