gardenaway
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Auto Generate KeysThat’s awesome Drazen. You read my mind.
Please make the ‘assign to order’ optional. It is our intent to give keys to users as a ‘reward’ for completing certain tasks, rather than purchasing something.
Thanks again for a great plugin!
Forum: Plugins
In reply to: [License Manager for WooCommerce] REST API Activate PUT/GET?Thanks!
Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeYes, cutting down API calls is always a good thing. We find the WP REST interface to be very slow. 3 calls to accept a key from a user could take several seconds which from a UX perspective isn’t very attractive.
I don’t follow your filter proposal, but that’s OK. As long as we can validate the key against the product and minimize API calls.
Looking forward to v2!
Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeThanks for the clarification. Sunday is good.
Our product is a free web app that users buy keys to add functionality.
For each of these add-ons, they go to our store, buy the add-on then paste the key in web app. The web app calls back to the server with the key to invoke the activation API.
Question: Would like to verify that the key that the user has provided matches the SKU of the add-on they have purchased. Is it possible to query the plugin to get the product SKU for the given key (or something like that).
Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeGood catch! Yes, the GET works. So it is not the route. I was trying different API calls to figure out why activation was not working put forgot to change GET/PUT.
My original problem was testing the activation of a key with PUT:
which returns:
{
“code”: “rest_invalid_param”,
“message”: “Invalid parameter(s): license_key_id”,
“data”: {
“status”: 400,
“params”: {
“license_key_id”: “license_key_id is not of type integer.”
}
}
}Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeThanks Drazen,
Yes, I’ve tried v1 and and I have the HTTP option set for development only. But the error persists.
We use the WP API all the time both in production (HTTPS) and development (HTTP) w/o 404.
Here’s the request:
https://local-shop.ideolio.com/wp-json/lmfwc/v1/licenses?consumer_key=xxx&consumer_secret=yyy
and the response:
{
“code”: “rest_no_route”,
“message”: “No route was found matching the URL and request method”,
“data”: {
“status”: 404
}
}Are there a few spots in the plugin where I could add debug statements to try to narrow down the issue?
Thanks again for the great plugin. Lots of potential!
Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeNever mind about https. Can’t get to server as it is only via http. Original problem remains.
Suggestions most welcome.
Forum: Plugins
In reply to: [License Manager for WooCommerce] API rest_no_routeInterestingly, tried https and the result is as follows. Could it be that the request is not coming from the owner?
<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<h1>Forbidden</h1>
<p>You don’t have permission to access /wp-json/lmfwc/v2/licenses
on this server.
<br />
</p>
<hr>
<address>Apache/2.4.33 (Win64) OpenSSL/1.1.0g PHP/7.0.29 Server at local-shop.ideolio.com Port 443</address>
</body>
</html>Forum: Plugins
In reply to: [License Keys for WooCommerce] Bad activation date for Extended featuresThank you for the update. I deactivated and updated the existing plugin. The problem, I found, takes a day to show up. I’ll report back.