Software for hosting and licnese management

We offer downloadable software together with hosted software. We need solution for both options. Plus we need to set license for each script sold locked on domain.

We tried SPBAS, but updates are not regular and some things keep messing up. Is there alternative or something that someone had experience with. We need to manage:

  1. Selling digital products
  2. Selling hosted products
  3. Setting up licenses for each downloaded product
  4. Invoicing and client management
  5. Hosting management

WHMCS has everything besides licensing and digital product sales.