How to design subscription billing systems, plans, trials, dunning, tax, metering, and revenue recognition for B2B SaaS companies.