I'm wondering if there is a way for a plugin to install other plugins directly. That means, I provide an interface for the user to click multiple plugins and download and install them directly to wp-content/plugins.
Basically imagine a marketplace plugin within wordpress where users can purchase plugins FROM a plugin and install directly into their site.
I would like to find out the API or any ideas on how to achieve the installation/upgrade.