I am in the process of creating a payment gateway for drupal / wordpress / magento. I already have clients who want to use my plugin. Because this is a paid piece of work, I want to protect it from being used on other websites.
I have also seen that many vendors who sell themes, modules and plugins are required to put in the API key.
How can I do the same. What do I need on my server side. I know how to create modules, but I don’t know to sell them securely and deliver regular updates.
If there is a book regarding this please let me know.
I’m not familiar with any books on the subject, but I’ll tell you what I’ve seen as one of a founders of a component / plug-in marketplace that has many such plug-ins.
There are a few approaches –
Personally, I lean more toward the first option, as someone determined enough will break whatever protection you put (people break much more complicated solutions in no time). This is one of the problems of delivering source-code instead of binaries (and those are broken just as easily by more experienced hackers). Let those who are willing pay, and the others just let them do what they want as you won’t be able to create something truly secure anyway.