I was searching for something like that few years back and couldn't fine any that can be integrated properly within our software.
However the closest that we could utilise for this purpose was ironically whmcs with the licensing addon. Yes it's a system for for whm server and hosting customers, but it does all the above from payment intengration, automatic renewal, suspending and closing accounts, licensing based on unique key per Install, invoicing, customer portal and most importantly 100% automated.
Let me know if you've found others.