Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter adamv2

    (@adamv2)

    Closing the case.

    Thread Starter adamv2

    (@adamv2)

    Hi Drazen,
    Thank you very much for your help.
    Since I needed just a fraction of functionality of the plugin, I managed to create that from scratch in my own code, so no farther assistance is required.
    This is a very good plugin of yours though.
    Good luck with it!
    Adam

    Thread Starter adamv2

    (@adamv2)

    Oh, I think I know where the problem lies.

    I do not have hash to provide. I do have ORDER_ID, PRODUCT_ID and the plain text license key. I want to check if the plain text license key matches the one stored in the databse for the order_id and product_id. One way or another.

    The simplest solution I first asked was to have a function to get PLAIN text license from the plugin database with given order_id and product_id and check if it is equal to the one from the user’s input (web form).

    Is there a solution like that available?

    Thread Starter adamv2

    (@adamv2)

    Thank you for the prompt reply.
    To be honest, I am not quite sure if I use the above code properly.

    When I try to use the code directly it seems that $license is false, since the script displays nothing. When I use echo $license->getDecryptedLicenseKey() without boolean check, I got this error:
    Fatal error: Uncaught Error: Call to a member function getDecryptedLicenseKey() on bool

    What am I doing wrong here? Should I include something first?

    And yes, since I only did unofficial translation for my company purposes before, I would very much appreciate your guidance how can I contribute to your plugin.

    • This reply was modified 4 years, 10 months ago by adamv2.
Viewing 4 replies - 1 through 4 (of 4 total)