maipiusenza Posted December 29, 2015 Share Posted December 29, 2015 Hi all, I'm trying to develop my first paid module and I would like to know how I can check if the user has a valid licence active. My module will call a php page on my server to retrieve some data, so I can check the http_referer to see if the shop bought the licence or not. But is there a db or an xml list I can call from prestashop addons to get that data? Or is there a different way to check for it? Or is the core code to automatic check it? Thanks! Nadia Link to comment Share on other sites More sharing options...
tuk66 Posted December 29, 2015 Share Posted December 29, 2015 Are you sure it is necessary? Link to comment Share on other sites More sharing options...
maipiusenza Posted December 29, 2015 Author Share Posted December 29, 2015 (edited) Without it, how can I protect my module from being used without paying the licence? Edited December 29, 2015 by maipiusenza (see edit history) Link to comment Share on other sites More sharing options...
Simonas Invertus Posted December 29, 2015 Share Posted December 29, 2015 (edited) I do not think that PrestaShop allows third party calls from the module. Nobody can protect it. You just need to trust people. Edited December 29, 2015 by Simonas Invertus (see edit history) 1 Link to comment Share on other sites More sharing options...
maipiusenza Posted December 29, 2015 Author Share Posted December 29, 2015 Third part call must be done anyway... It needs to retrieve some extra shipping information from a database, can't insert that data in the module as they change... Link to comment Share on other sites More sharing options...
tuk66 Posted December 29, 2015 Share Posted December 29, 2015 Can you be sure that your solution will be 100% functional in all PrestaShop versions and won't create problems for your customers? Link to comment Share on other sites More sharing options...
maipiusenza Posted December 29, 2015 Author Share Posted December 29, 2015 I just have to call an external php page pasing a couple of variables and get back some variable, this should be not a problem on different versions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now