HISE Logo Forum
    • Categories
    • Register
    • Login

    validate 3rd party licence key in HISE plugin?

    Scheduled Pinned Locked Moved Solved General Questions
    5 Posts 4 Posters 464 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StraticahS
      Straticah
      last edited by Straticah

      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.

      https://docs.lemonsqueezy.com/guides/tutorials/license-keys

      building user interfaces in HISE :)
      web: www.vst-design.com

      A dannytaurusD 2 Replies Last reply Reply Quote 0
      • StraticahS Straticah marked this topic as a question on
      • A
        aaronventure @Straticah
        last edited by

        @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.

        1 Reply Last reply Reply Quote 3
        • dannytaurusD
          dannytaurus @Straticah
          last edited by dannytaurus

          @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

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          StraticahS 1 Reply Last reply Reply Quote 1
          • StraticahS
            Straticah @dannytaurus
            last edited by

            @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 :)

            building user interfaces in HISE :)
            web: www.vst-design.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Straticah
              last edited by

              @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.

              HISE Development for hire.
              www.channelrobot.com

              1 Reply Last reply Reply Quote 0
              • StraticahS Straticah has marked this topic as solved on
              • First post
                Last post

              44

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts