I'm thinking about the programatic creation of a subsite for each group along with unique subsite-associated admin and user groups, and then automated creation and mounting of package instances under the subsite. These are all actions that are currently performed manually by a site-wide administrator using the site-map and groups UIs.
Along with subsite creation and package mounting, I'll need to utilize a payment gateway that can handle subscription-based and use-based collection.
I haven't (yet) located examples, discussions, or API doc to tell me how to handle the programming of issue a), so I'm beginning to trace through the site-map code to figure this out. I don't know quite where to start with issue b).
Has anyone already addressed either or both of these issues? Can anyone gently point me toward resources that might help me?