• Resolved segalasoft2020

    (@segalasoft2020)


    Hello,
    I want to use limit for a product only run on a computer.
    It’s mean when customer get a serial number and enter it for software activation, API function make a hardware key and send it to server for save and in every verification process this job repeat, if hardware key and a other key valid software run and else not.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @segalasoft2020

    thank you for your message and for using my plugin.

    That should not be a problem. You would need to do the following:

    On activation:

    1. Modify your REST API request body to contain the additional data.
    2. Hook into the lmfwc_rest_api_validation filter to perform additional validation
    3. Store the hardware key using the lmfwc_add_license_meta() function

    On validation:

    1. Modify your REST API request body to contain the additional data.
    2. Hook into the lmfwc_rest_api_validation filter to perform additional validation
    3. Check the previously stored hardware key using the lmfwc_get_license_meta() function.

    Let me know if you need further help with this.

    Thread Starter segalasoft2020

    (@segalasoft2020)

    Ok,
    Thank you for your help.

    Thread Starter segalasoft2020

    (@segalasoft2020)

    I study the document and saw that the library is only for PHP language.
    I need to use API for C++ in MQL5 language.
    Can you tell me about this subject and how can I write functions for part ?

    @segalasoft2020

    You can definitely code the request in C++, no problem there.

    However, verifying the additional data sent from the request needs to be done server-side (PHP).

    I’ll write up a how-to guide tonight and put it up on the website. Once it’s up, I’ll post the link here.

    Thread Starter segalasoft2020

    (@segalasoft2020)

    Hi Drazen Bebic,
    Thank for your try and help.

    Hi Drazen Bebic,
    Could you please tell or update documentation on where to add (Which file and the line of code) the code and lmfwc_rest_api_validation filter in documentation.
    It would be really helpful

    Thanks for your work

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to make limitaion for product run on a computer’ is closed to new replies.