Adding support for automatic upgrades to your WordPress plugins with the WordPress Licensing System is really simple. After you have setup your product, there is just a small code snippet and one file that you need to include in your WordPress plugin.
Included with your download of the WordPress Licensing System is a sample plugin. It is highly recommended that you open this up and look at its entirety.