Usage-based subscriptions in Stripe

Actually I just turned up this thread, which makes me think that’s it not supported in ERPNext, but could be implemented with custom coding:

It goes well beyond utilities and printer services. Many SaaS companies are using this model and it’s got huge potential. AWS and Azure are examples of big players who use it.

Again, any pointers, even just to technical docs that might give me a leg up on a custom implementation would be greatly appreciated.