Hi,
I have developed a membership plugin (Wordpress) which provides different membership levels. It facilitate users with content, membership managment, protect variety of content and etc. It supports PayPal, Authorize.net and ClickBank payments. It provide multiple autorespnoders like Aweber, MailChimp and GerResponse
I have an other RESTful API which provides licensing services. I'm able to genereate license key, validate and update keys via this service.
I need to integrate my membership plugin with that Software Licesning service, that means if someone downloads the plugin and installs it on their wordpress site, it should at first not work. Instead it asks them to provide a license key.
Now suppoese if the user purchases the license key for that membership plugin. Sometimes there are different versions of a license, like basic or pro or ultimate , the person issuing the license can make choose whatever he wants and indicate that in "disposition"
So let's say user had a "basic" version of my membership plugin that only supported paypal payments or only supported Aweber. I can get the license information and see that disposition = basic tthen i would render only the basic elements. if i see that disposition = pro then i would render the entire plugin.
If the license ever expired, I would disable the plugin and ask for a new license key again. if the license key that they provide was expired or deleted or invalid then i would not enable the plugin but would keep asking for a license key until i got one that was valid.
I hope you understand all that, What would be the best way to accomplish this integration? How can i manage different elements rendering of my plugin on base of license key? Please refer me to some good example which model this kind of integration?
I'm experienced developer and i know how to code but i am looking for some professional way to accomplish this kind of integration.
I do appreciate all of your help. Thanks