Feretorix Posted November 5, 2022 Posted November 5, 2022 I want to build an application, but before that I need help understanding how exactly does the nexus licensing system work. Step 1 is creating the product and attaching "license key" to it in the store. Step 2 is uploading to the root directory the following constants.php file : <?php define('NEXUS_LKEY_API_DISABLE', FALSE); ?>[ Then obviously is having a "customer" with a "key" file available for use in the store itself. And finally I want to create a script/software which can access data and use these keys (check if they're expired / valid and so on). But this is the error I am getting: Any help is appreciated as I am most likely missing a vital step. Here is the URL so I can save you time testing it out yourself >> https://cryptotradingheroes.com/applications/nexus/interface/licenses/?info&key=G47U-PVDJ-IOQ2-6700-TWK2
Marc Posted November 7, 2022 Posted November 7, 2022 You appear not to be sending any identifier with this, as per the documentation here https://invisioncommunity.com/developers/docs/other-features/commerce/using-the-license-key-api-in-commerce-r75/
Feretorix Posted November 11, 2022 Author Posted November 11, 2022 (edited) Thank you for the response, how would I first use the ?activate prefix with the key and email included? As per chosen in the ACP? For example this is my current link I am testing: https://cryptotradingheroes.com/applications/nexus/interface/licenses/?info&key=G47U-PVDJ-IOQ2-6700-TWK2 After that what is the follow up process to "use/check" the key validity? Thank you in advance. With best regards, Feretorix. Edited November 11, 2022 by Feretorix
Jim M Posted November 11, 2022 Posted November 11, 2022 48 minutes ago, Feretorix said: Thank you for the response, how would I first use the ?activate prefix with the key and email included? As per chosen in the ACP? For example this is my current link I am testing: https://cryptotradingheroes.com/applications/nexus/interface/licenses/?info&key=G47U-PVDJ-IOQ2-6700-TWK2 After that what is the follow up process to "use/check" the key validity? Thank you in advance. With best regards, Feretorix. ?activate would activate the license key for a specific IP address as outlined in the documentation. Then you would use ?check to check that the license key is valid from that IP address. If you are wanting to make to make a call to get license key info but not specific to license key, the ?info endpoint is used. In your example, you would need to also provide the identifier as a parameter as outlined by the required parameters in the documentation my colleague referenced. I would suggest reading through the documentation as it is outlining these specific endpoints, their purposes, and required parameters.
Feretorix Posted December 2, 2022 Author Posted December 2, 2022 I want to thank Jim for all the help, but I will need some more. First I am activating the key with: https://site.com/applications/nexus/interface/licenses/?activate&key=SUIE-8G4G-VA89-1TN5-LQ58&setIdentifier=newIdentifierVal&extra=somemoredata which looks like this: Later I want to get some info about the key activations to see if the setidentifier or extra have been filled in properly (as the url above suggests "newIdentifierVal" and "somemoredata") https://site.com/applications/nexus/interface/licenses/?info&key=SUIE-8G4G-VA89-1TN5-LQ58 This is what I get: From the result it's obvious that neither setIdent or extra parameters have worked out, but activation has indeed occurred which gave the usage_id of 6 Can anyone help me how to fix the URL so both of those fields will work? Config in ACP looks like this:
Recommended Posts