adamv2
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Get license key by order id?Closing the case.
Forum: Plugins
In reply to: [License Manager for WooCommerce] Get license key by order id?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!
AdamForum: Plugins
In reply to: [License Manager for WooCommerce] Get license key by order id?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?
Forum: Plugins
In reply to: [License Manager for WooCommerce] Get license key by order id?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 boolWhat 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.