Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › Software License Add On – Applying distinct licenses to product variation
Tagged: api, license key, serial number
- This topic has 5 replies, 3 voices, and was last updated 6 years ago by admin.
-
AuthorPosts
-
November 11, 2018 at 6:47 pm #15192morsagmonMember
Started setting up eStore with Software License Add On for selling (downloadable) software products.
I’m selling two versions of the software: Basic and Full. I need to limit functionality in the software based on the LICENSE purchased (Basic or Full), hence, I need a way to identify the license type bought, using your API.
1. I prefer to have both versions maintained as variations of the same product. Can I apply different license types to the different variations? How?
2. Can I specify a different license key PREFIX for different license types (so that I can distinguish from the returned license key, if its the BASIC or FULL version)?
3. I did not see in the API a method to check license validity. Only found Activate/Deactivate/Generate. How can I poke the license server occasionally to verify a legit license is valid?
4. Where do I set the license key generation to be automatic in conjunction with a purchase?
WP 4.9.8
eStore 8.0.7
Software License 4.1
Thanks!
Mor
November 12, 2018 at 4:01 pm #78790wzpModeratorI prefer to have both versions maintained as variations of the same product. Can I apply different license types to the different variations? How?
The Software License Manager (SLM), has zero-knowledge of product types AND variations. Unfortunately, this means you can only sell one kind of SLM based product. Perhaps you might want to use the “Serial Number” feature of eStore instead.
This does require, that you manually create an inventory of algorithmic hash codes (keys) for each product; and that your product contain code to validate the serial numbers.
Can I specify a different license key PREFIX for different license types (so that I can distinguish from the returned license key, if its the BASIC or FULL version)?
When using the SLM, there is no way to dynamically “format” auto-created license keys.
I did not see in the API a method to check license validity. Only found Activate/Deactivate/Generate. How can I poke the license server occasionally to verify a legit license is valid?
Read the section “Checking A License Key”
https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress
Where do I set the license key generation to be automatic in conjunction with a purchase?
In the “AddOn Settings” section of the “Add/Edit Product” screen of eStore:
November 12, 2018 at 9:55 pm #78791morsagmonMemberThanks, wzp.
So, I can sell multiple products (forget the variations) for which SLM will generate and send a license key, but I cannot distinguish, on the client side, which product was licensed based on these keys. Can I combine this license mechanism with the serial number feature, in such a way that I’ll have only a single serial code per each product that will be used for ALL purchases of this product, and from the client side use some API (if exists) to query if the provided pair of license key + serial code both belong to the product purchased? or some other way to achieve this? For this approach to work, I need the following:
a) be able to set only one serial code to be used for ALL purchases per each product.
b) Have an API to query from the client side about this serial number and make sure that the provided license key belong to the product for which the provided serial key is assigned.
Any alternative approach you may offer to be able to distinguish the purchased product on the client side?
November 13, 2018 at 1:50 am #78792adminKeymasterEach license key will have the product reference there. If you are selling via WP eStore then it will have the estore’s product ID. Edit a license key from the admin dashboard and you will see the value in the “Product Reference” field.
When you query a license key (to check if it is valid), you can also check what product ID this key is for. Then do things accordingly.
November 13, 2018 at 7:41 am #78793morsagmonMemberOhhhh, I have the Product ID in the JASON stream coming back… Good.
You need to update your documentation to reflect that, here:
Thanks, admin!
November 14, 2018 at 6:13 am #78794adminKeymasterThank you. I have added a section to the documentation.
-
AuthorPosts
- You must be logged in to reply to this topic.