pipermp3
Forum Replies Created
-
Forum: Plugins
In reply to: [License Manager for WooCommerce] Refunded order not deactivating keyRight,
I have moved on from the REST API.
I have worked out direct DB queries that can be used to auto update the key statuses upon order status.Should anyone come to find this thread and needs some direct automation within the DB to manage the order status vs key status, PM me.
Forum: Plugins
In reply to: [License Manager for WooCommerce] Refunded order not deactivating keyAnd a second side-note.
If the License Manager plugin creates an ACTIVE license key, which is sent to Customer, the activation is 0/1 but the status is ACTIVE.The REST API validate can only see whether the key is 0/1 activated or 1/1 activated status, it does not see whether it is ACTIVE or DEACTIVATED key in it self.
The REST API can however set the ACTIVATION up/down, but it cannot actually change the STATUS of the serial key to Active/Inactive.
I also cannot see a way that during a REFUND, the plugin 1. Does not set it to inactive, or 2. the Plugin updates the attached key to 0/1 activation.
As such I am struggling to see how I can use this for my remote app.
My remote app could either use the activation: 0/1, but the ORDER status does not move this status at all.Or my app could use the actual STATUS of the key (1,2,3,4) but the REST API VALIDATE GET does not return this data so my App couldnt use it anyway.
AND the order status does not change this status either.Are we sure the Plugin is working as intended?
Forum: Plugins
In reply to: [License Manager for WooCommerce] Refunded order not deactivating keySide-note:
The REST API should really return more than either Success or Invalid when validating a key.
It would be great if the REST API VALIDATE could return the status of the key, ie, active or inactive.Unless – if Deactivating a key via License Manager (DB or UI) this removed the Activation mark, Ie, I have a key whish has 1/1 Activation.
If key is marked inactive this could go to 0/1, that would also solve another annoyance.
Forum: Plugins
In reply to: [License Manager for WooCommerce] API wrap aroundHi @drazenbebic
Whoah, that was hella quick response.
Yep, in this setup that snippet works 100%.
Done a few translations for you for Norwegian whilst I was waiting for ya.Great plugin by the way, works fab. Newbie to API in general so this plugin has proven quite good in getting to grips of it.
For anyone else that eventually lands on this code snippet, it works if you have a “form” that submits TO this code.
Ie, the code above would be your api.php
and this could be your “form”;form.php
<html>
<body><form action=”http://hostaddress/api.php” method=”get”; <—- api.php is the codesnippet above
License Key: </br>
<input type=”text” name=”id”> </br>
<input type=”submit”>
</form></body>
</html>Horribly basic form, no validation.
But it works, and is a great starter-point to develop on further what you may aim to do with the API/Plugin.Thanks again @drazenbebic !
- This reply was modified 6 years, 5 months ago by pipermp3.
Forum: Plugins
In reply to: [License Manager for WooCommerce] API wrap aroundTried the codesnippet provided above, but getting syntax problems all over the place.
Are there any specific php modules that needs installed for it?
I blank copied the code – adjusted the URL to match a postman-working URL (to make sure it worked) but im throwing php parse problems from line 26 and further.
If I entirely remove
if ($err) {and the rest, its 200,- working fine.Issues begins right at that point, and when I fix one line, I break another.
Any chance someone can look it over?