Wordpress Plugins: Publish and Monetize
Publishing plugin on wp.org
Selling Licences
Kompletno rešenje već gotovo:
Create and sell license key in WooCommerce - WordPress Memo
YahnisElsts/plugin-update-checker is a custom update checker for plugins and themes that are not hosted on wp.org, but still want to support automatic updates.