This sounds like self-hosted version of Leanpub (but they handle fees like VAT and act as merchant-of-record among other features).