/awesome-billing

💰 Billing & Payments Knowledge for Cloud Platforms

Creative Commons Zero v1.0 UniversalCC0-1.0

💰 Awesome Billing and Payments Awesome

In a Stanford class on Cloud computing overview, the software architecture is described as in the right diagram:

This knowledge base cover the first of the far perimeter of the cloud stack. It is one of the pillar of the cloud ecosystem, where customers, products and business meets. The other pillar being Identity and Access Management (IAM) 👤.

Contents

Basics

Pricing

From monthly subscription to commodity-like on-the-go consumption, and including shopping-cart like funnel, there's plenty of scheme out there to structure your product's pricing.

Usage-based Pricing

The default, dynamic scheme for cloud resources.

Subscription Plans

Highly popular for SaaS businesses, subscription plans are easy to comprehend.

  • Pricing low-touch SaaS - “In low-touch SaaS, the most common way packages are presented are as different columns in a pricing grid, with each column corresponding to a plan, offered at a different price, with differential access to features or maximum allowable usage along some axis interesting to the business.”
  • f-license - Open-source license key generation and verification tool in Go.

Hybrid

Uncommon pricing schemes.

  • The Three Part Tariff - Beyond linear pricing, there is a place for an additional platform fee and free-tier component in the pricing structure.
  • Google Ads API: BillingCap enum - Capped actuals: monthly with rollover, an optimized pricing scheme to limit surprises from customers, in which we more or less sell quotas.

Strategy

Theory and practical insight to help you choose the right price point.

Product Catalog

The central repository of all available services, products, variants, options and pricing available to the customer to purchase. Catalogs for cloud services are most of the time tailor-made, but there is some classic PDM solutions (Product Data Management, a.k.a. Product Information Management) out there that might fit the bill.

Calculator

Simulate a virtual invoice depending on the resource you plan to use.

Cost Forecast

Help your customers predict their upcoming and future consumption based on their past usage.

Marketplace

A marketplace connect supply with demand that lead to a financial transaction. If there is no payment involved, then it is an aggregator, or a hub. Not a marketplace.

Cloud Resources

This sub-section focus on bid/ask mechanism matching resource producer with consumers. Most of the time these are one-sided markets with the big platform trying to amortized under-utilized inventory.

Online Ads

Targeted online advertisements marketplaces have a lot in common with traditional cloud marketplace. Some good inspiration there, from concepts to tech

Accounting

Double-Entry Model

The core concept of accounting is double-entry. It is the most critical part to grasp in order to properly design any robust system that tracks money.

Bookkeeping

Everything you need to know about the daily practice of keeping your accounting data clean and tidy.

  • So, you want to learn Bookkeeping! - Focus on the daily operations of recording and maintaining the transactions of a business.
  • Plain text accounting tools - Extensive list of open-source personal finance projects that might be great to look into for inspiration on double-entry accounting and bookkeeping.
  • And a list of graphical accounting tools: GNUCash (GTK+), Grisbi (C), Firefly III (PHP).
  • GnuCash Tutorial and Concepts Guide - A complete tutorial on personal finance tracking with GnuCash.
  • Frappe Books - Free Desktop book-keeping software for small-businesses and freelancers.
  • Luca - YAML accounting and JSON tax forms.
  • Sequence - API that store, validate and reports asset movements. Also known as a Ledger. Sequence is immutable, scalable, and easy to use.

Software design and implementation

Now that you're somewhat familiar with the concepts and practive of accounting, here are some resources to help you implement that knowledge into software systems.

Analytics

Once you've got your accounts in order, you can start extracting insights and metrics your financial data.

Currencies

Global companies needs to know how to juggle between local currencies.

Coupons and Vouchers

Taxes

European VAT

Invoice

The invoice materialize a consumed service or purchased product, waiting to be settled by a payment transaction.

  • On GCP invoiced billing - Invoiced billing (B2B-friendly payment by the customer after the service is consumed and an invoice issued) is a pain on GCP.
  • Digital signatures: how Sleek leverages Cloud HSM to guarantee the integrity of legal documents - Here is a great way to rely on GCP's HSM to digitally sign documents and provide an immutable audit-trail. Might be applied to invoices as well as contract agreements.
  • OpenTimestamps - Go beyond the solution above, and timestamp immutable document directly on Bitcoin's blockchain.
  • Manta - Flexible invoicing desktop app with beautiful & customizable templates.
  • InvoicePlane - A self-hosted open-source application for managing your invoices, clients and payments.
  • Volcano - Flexible, gateway-agnostic billing system.
  • InvoiceGenerator - Library to generate a simple invoices.
  • Ruby Invoicing Framework - For generating and displaying invoices (ideal for commercial Rails apps). It allows for flexible business logic; provides tools for tax handling, commission calculation etc.
  • Refact - A design project trying to revamp a phone bill with infographics.
  • InvoiceNet - Deep neural network to extract intelligent information from invoice documents.
  • Factur-X - Python library to support the e-invoicing standard for France and Germany.
  • Universal Business Language - Most invoicing software can read and write UBL documents (XML) for data transfer.

Payments

Receipt

A receipt materialize the payment transaction.

Credit Cards

The most popular payment device.

Bank Accounts

The old-fashioned way of payment: by the way of banks.

Online Payments

The usual money transfer services.

  • UPI 101: The Basics - “In this article, we will learn about India's Unified Payments Interface. A four-year-old payment scheme that has been accounting for 40-45% of digital payments across India.”
  • The untold story of Stripe - In which we learn that “once turnover hit a certain level, Paypal automatically put the business on a 21 to 60 day rolling reserve, meaning that up to 30 per cent of a company's revenue could be locked up for up to two months.”

Fraud

There's monetary incentives to exploit your business. Be prepared to fight hordes of fraudsters and shady users.

Cards

The majority of fraud is exploiting the most common popular payment device: credit cards.

Trust Score

Synthetic score based on a collection of signals are often the best proxy of user's trustworthiness. Customer support most of the time rely on them to take action when these actions are not triggered automatically.

Statistics

Best tools to automate fraud detection.

Billing

UX/UI

Users gets easily angry when it comes to money. UX and UI might helps a lot to reduce frustration.

Business Intelligence

As stakeholder of the billing pipeline, you sat on all the critical data to measure and report on the health of the business.

Metrics

Definition and collection of Key Performance Indicators (KPIs) worth monitoring.

Customer Lifetime Value

How much net value do you produce per customer? The customer lifetime value (CLV, or LTV) quantify that, and understanding and acting on it is the most important part of your business's sales efforts.

  • You're all calculating churn rates wrong - “On the surface, churn rate may seem like a natural proxy for changes in customer lifetimes. Let’s dig into why that is not true.” Churn rate is not a meaningful metric to compute CLV, as during the customer lifetime the churn probability is not constant. Most of the time because of your free trial and vouchers.
  • How to project customer retention - A seminal paper, with a stronger approach compared to the one above: the exponential distributions is replaced by a geometric model, better suited to monthly contracts.
  • RFM (customer value) - A refined model of CLV, used to segment users based on Recency, Frequency and Monetary value.
  • Churn Prediction - “How to use Python in a simplistic way to fuel your company's growth by applying the predictive approach to all your actions.” Relies on XGBoost binary classification.
  • Lifetimes - A full-featured Python package to analyze your users based on their "alive" and "dead" states.
  • retentionizer - Python package to show the projected retention rates for each cohort and calculate the LTV of a given customer in that cohort.

Data Engineering

To industrialize data production and consumption, your need data engineers to clean up, persist and consolidate data. Only after you get these data foundation you might think of onboarding data scientists.

  • AI vs Data Science vs Data Engineering - “Data Engineers build data pipelines and infrastructure to ensure a constant availability of transformed data. Data Scientists analyze and build models from these data to develop new product features or drive the bottom line of the business.” As for AI professionals, their focus is on cognitive automation.
  • Ten Ways Your Data Project is Going to Fail - You don't need data scientists. “For ETL, hire data engineers. For reporting, hire BI analysts. The end.”
  • Cargo cult data science - “Data science is best viewed as a form of company culture, rather than a set of technologies. However, many firms will try to create that company culture by acquiring data-science technology, rather than working on their culture.”
  • Why not use Double or Float to represent currency? - Because of precision: floats and doubles cannot accurately represent the base 10 multiples that we use for money.
  • Never Use Floats for Money - “This is precisely the problem we have when trying to represent 10^-1, or 0.1 in binary. There is not an exact binary representation of 0.1 or 0.01.”
  • European Spreadsheet Risks Interest Group - Horror Stories - A collection of cases in which uncontrolled and untested spreadsheet models led to lost revenue, mispricing, poor decision making, fraud and systemic financial failure.

Tools

Software to build visualizations, dashboards, SQL queries and drill down into data.

  • Practical Business Python - A blog collecting and spreading ideas on how to use Python more effectively in the business setting.
  • redash - Connect and query your data sources, build dashboards to visualize data and share them with your company.
  • Metabase - Metabase is an open source solution to explore and visualize data and supports lots of databases.
  • Apache Superset - Enterprise-ready business intelligence web application.
  • Meltano - Open source convention-over-configuration product for the whole data lifecycle, all the way from loading data to analyzing it.
  • insights - Insights is a tool to visually explore a PostgreSQL database, with an emphasis on generating graphs that show business performance over time.
  • falcon - Free, open-source SQL client for Windows and Mac with builtin graphs.

Competitive Analysis

A bunch of resources to keep track of the current status and progress of all companies operating in the domain.

Commercial Solutions

History

Contributing

Your contributions are always welcome! Please take a look at the contribution guidelines first.