gdarko / digital-license-manager

Extendable License Manager for WordPress and WooCommerce 🔑
https://wordpress.org/plugins/digital-license-manager/
GNU General Public License v3.0
21 stars 5 forks source link

Can't activate licenses with special characters #47

Open purriexyz opened 1 week ago

purriexyz commented 1 week ago

Hi,

I've imported some older license keys I created before. But upon activation these fails with notification of "No route was found matching the URL and request method."

If I try directly with the web browser it just gives a 404 error.

Keys without special chars seem to work just fine. For instance key that does not work: c$CNBmRp%6@qgM7FynD#

gdarko commented 4 days ago

Hey @purriexyz - Are you using the API for this? If so i think i have an easy solution for you. Let me know.

purriexyz commented 1 day ago

Hey @gdarko

Yes I am using the API to activate the license. I tried via a direct call to the API via CuRL but the DLM-PHP class didn't work either.

gdarko commented 1 day ago

Hey @purriexyz -

Sometime ago we introduced a way to pass "Complex" license keys (like in your keys)

https://docs.codeverve.com/digital-license-manager/rest-api/complex-licenses/

All you need is to hash your key using the Digital License Manager secret keys and pass the license as hashed-**the-hash**

Best Regards, Darko