Yᴏᴜʀ Pʀᴏᴅᴜᴄᴛ ʜᴇʀᴇ!
Add a link to your company or project here: purchase a GitHub sponsorship.
Money is the most universal and most efficient system of mutual trust ever devised.
— Yuval Noah Harari[1]
Any company needs at one point to get money from customers. That’s when things gets messy for us developers, as we try to reconcile the complexity of the business with our software stack.
This list helps software engineers bootstrap billing & payments systems, and make sense of invoicing, pricing, accounting, marketplace, fraud and business intelligence.
In a Stanford class providing an overview of cloud computing, the software architecture of the platform is described as in the right diagram →
Billing is one of the transversal pillar of the ecosystem, where customers, products and business meets. The other pillar being Identity and Access Management (IAM) 👤 .
This highlight the strategic importance of the domain, not only for cloud providers but virtually any business, especially those who are software-centric.
Pricing, my only growth hack at Qonto - Most businesses don’t know how to iterate over pricing: sales teams dictates them without involvement of the people in charge of implementation, which ends up in frustration for all. That’s why you need to recognize billing as a critical function of your organization.
5 things I learned while developing a billing system - A great introduction on all the various aspects of a billing system, from currency to invoices, including great illustrations on the logic of changing plans. All these topics are detailed in dedicated sections below.
Open guide to AWS - Links to the Billing and Cost Management section which details the broad characteristics of billing for a cloud provider.
Billed for ¥21,120, invoiced at ¥2,112,000 and paid ¥2,112,000 - Get rid of integers and floats for monetary values. Use decimals. Or face the risks of anomalous x100 charges.
How to recruit software engineers in this domain? “The trick is to make the accounting/billing/payment department the antechamber of data engineering.” (source)
From monthly subscription to commodity-like on-the-go consumption, there’s plenty of scheme out there to structure your product’s pricing. Including the good old shopping-cart funnel.
Don’t just roll the dice – Software pricing guide - Huge and complete collection of pricing scheme, with their psychological effect and impact on revenue model.
Business Model Patterns - A list of 15 different ways to sell products and services.
Axial - Business models - 38 models for inspiration.
The Network Monetization Map: Aligning Incentives with Revenue - 6 models of monetization relying on network effect.
The 5 Pillars of PriceOps - A manifesto inspired by the DevOps movement in which pricing is no longer ossified, but is practiced as a responsive iteration process, and implemented as a flexible property of the system.
SaaS pricing explorer - A collection of 1000+ pricing pages for inspiration.
The dynamic scheme for elastic resources.
Why I Love Usage-Based Pricing - “The most important reason I like this pricing model is that it heavily incentivizes both the customer and the service provider to act in everyone’s best interest.” Also details issues with other pricing models.
Use-cases for cloud services - The reason usage-based pricing makes even more sense for cloud services: to optimize ROI, keep all regular workload in traditional architecture and reserve cloud computing for elastic and experimental projects.
Socially Optimal Pricing of Cloud Computing Resources - “The socially optimal operating point is unique, and can be sustained by a linear, usage-based tariff, which charges a fixed price per unit resource and unit time.” This paper justify usage-based pricing for cloud resources.
A Survey of Profit Optimization Techniques for Cloud Providers - “The strategy of improving user service quality is discussed first, followed by the pricing strategy for cloud resources to maximize revenue.”
“Billing is not complex on purpose: it’s the price to pay for elasticity.” (source) - Or why you’re likely to get an endless stream of complaining users if choosing utility pricing scheme: while accurate to the (milli-)cent, this model is frustrating for customers not ready to invest time grasping the underlying concepts.
Octane’s Meter Types - Nice illustrations of the quantization applied to time and value quantums on variable usages.
Riemann sum - The starting point about quantization of usage.
Allen’s interval algebra - Implementing usage-based pricing is tricky, and this algebra will help you organize temporal reasoning. Also see this Stack Overflow question with clean schema.
Reconcile Your Monthly GCP Invoice with BigQuery Billing Export - Behind the quest of this developer to track its expenses, you get a glimpse on cloud billing difficulties. While not explicitly pointed out, pricing cloud resources is hard and the result of quantization, granularity and rounding, between space, time and currencies.
AWS EC2 T2 Instances Demystified: Don’t Learn The Hard Way - An example of really tricky burstable instances which accrues and limits its own amount of CPU usage credits.
“Designing billing for a service can be really challenging” - Personal anecdote on the design of the pricing plan for AWS Simple Email Service.
Subscription-based pricing is dead: Smart SaaS companies are shifting to usage-based models - Usage-based pricing is more optimal and more fair: it “allows a customer to start at a low cost, minimizing friction to getting started while still preserving the ability to monetize a customer over time”.
Electropedia: Tariffs for electricity - Before the cloud, there was another metered resource priced by its usage: electricity. Here is a detailed (and multi-lingual) taxonomy of its vocabulary from the International Electrotechnical Commission.
Lago - Open-source metering & usage-based billing.
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.”
Lotus - Open-source project to manage pricing & packaging infrastructure.
f-license
- Open-source license key generation and verification tool in Go.
Uncommon pricing schemes.
Theory and practical insight to help you choose the right pricing tactics.
“There are two ways to make money. You can bundle, or you can unbundle.” - Jim Barksdale.
Pricing Psychology - Which numbers should you use? How high should it be? Should it be rounded? This guide has 42 tricks to help you choose the best price.
The 7 factors to consider when pricing your startup product - Pricing is an offensive tool to reinforce your product value and underscore the company core marketing message.
The Anatomy of SaaS Pricing Strategy - Explain how to articulate the pricing of SaaS businesses around the product strategy.
The cup-of-coffee pricing fallacy - Explains why it is a sloppy analogy.
Survey methods and price discovery techniques to find the right price point.
Jeremy Howard - From Predictive Modelling to Optimization - “In insurance, the price is the product. (…) How do I change price to make shitload of money?” Or how to deliver results (optimal price for a customer) instead of delivering data (calculating a customer’s risk, which had been the standard approach used by actuaries previously).
Gabor–Granger method - Used in surveys to determine the price for a new product or service. The results can be used to produce a demand chart and a revenue curve.
Van Westendorp’s Price Sensitivity Meter - PSM is a market technique for determining consumer price preferences. Allows for drawing a revenue curve to estimate the price point delivering the maximum revenue.
Pricing niche products - “The most compelling argument against simply picking a price, though, is that it limits how much you can learn about your market.” Then the author setup vickrey auctions to discover price.
Finding the max revenue price mark for digital products - “To find the optimal price that provides maximum revenue for your product you will need to field-test several price points; you then reconstruct the revenue curve and find the peak.”
Personalised pricing and EU law - Some cases of price personalisation are prohibited in EU due to consumer protection and data protection rules.
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. PIM for Product Information Management) out there that might fit the bill.
GCP Product Catalog - All GCP SKUs available as an API.
Akeneo PIM - The open-source variant of the commercial Akeneo products.
Pimcore - An open-source UI and database to manage product metadata, written in PHP Symfony.
OpenPIM - A streamlined open-source project, focusing on PIM-only features.
Comparing 3 open source PIM solutions - Comparative study of the 3 projects above.
Simulate a virtual invoice depending on the resource you plan to use.
Cloud Cost Calculator - Web-based tool for finding the cheapest cloud servers for a given set of requirements.
Cloudorado - A comparison matrix which use ECU (Amazon’s vCPU) as a CPU power measure unit.
EC2Instances.info - Easy Amazon EC2 Instance Comparison.
Help your customers predict their upcoming and future consumption based on their past usage.
Forecasting: Principles and Practice - “Comprehensive introduction to forecasting methods and to present enough information about each method for readers to be able to use them sensibly.”
Transforming Financial Forecasting with Data Science and Machine Learning at Uber - Discusses how Uber apply data science and machine learning in their financial planning platforms.
Time Series Prediction - A short introduction for pragmatists - Great introduction on how time series can be used to evaluate business problems.
Forecasting with sktime - A more detailed tutorial on how to use past data to make temporal forward predictions. And be aware of the differences between sktime and the Prophet project mentioned in the article above.
Darts - Python library for user-friendly forecasting and anomaly detection on time series. It wraps a huge number of models, including Prophet. Great for experiments, but bear in mind that all the models in Darts expects that your data comes at a very regular interval, and make a lot of assumptions about their shape.
Komiser - Open-source tool to stay under budget by uncovering hidden costs, monitoring increases in spend, and making impactful changes based on custom recommendations.
GCP Cost Forecast - An example of consumption trend line for resource consumption.
AWS Forecast - A full-featured hosted product to perform forecasting on any time-series.
How to save money on your AWS bill - “The biggest cost savings there are: 1. Turning things off that you’re not using; 2. Then spot instances; 3. Then reserved instances.”
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.
Customized Regression Model for Airbnb Dynamic Pricing - This paper describes the pricing strategy model deployed at Airbnb.
Papers we love: Auctions and Bidding - A collection of papers on bidding and auctions.
Vickrey auction - Hinted by an HN comment, in which yes, “‘Asking people what they’d pay for and how much rarely works.’ (…) [but] using a Vickrey auction, similar to Google’s ad auction mechanism, can elicit a person’s maximum willingness-to-pay.”
19 Tactics to Solve the Chicken-or-Egg Problem and Grow Your Marketplace - “Which comes first, the supply or the demand? Chicken or egg?”
How to Kickstart and Scale a Marketplace Business: Constrain the marketplace; Decide which side of the marketplace to concentrate on; Drive initial supply; Drive initial demand. A 4-parts series with dozen of interviews of people with direct experience building and scaling marketplaces.
A Rake Too Far: Optimal Platform Pricing Strategy - A bit of vocabulary: “In a casino, the term rake refers to the commission that the house earns for operating a poker game. (…) While casinos use the term rake, a plethora of interesting word choices exist which all describe the same thing – keeping a little bit of the revenue for the company that is running the service.”
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.
Incentive Engineering for Computational Resource Management - Paper exploring the “mechanisms for the allocation of processor time and storage that are compatible both with programming practice and with market mechanisms.”
Pricing of Service in Clouds: Optimal Response and Strategic Interactions - “How should the consumer modulate its demand to optimize its profits? (…) How should the provider and consumer negotiate the specific pricing structure they will employ?” Covers non-linear models, tiered pricing, elastic demand, consumer et provider strategies.
Dynamic Cloud Pricing for Revenue Maximization - “Amazon’s spot price is unlikely to be set according to market supply and demand. Rather, price oscillates within a very narrow band most of the time, which is more likely to be an artifact of some pricing algorithm with predetermined reserve price.”
Usage Patterns and the Economics of the Public Cloud - “We examine the economics of demand and supply in cloud computing. (…) These results explain why fixed prices currently prevail despite the seeming need for time-varying dynamics. Examining the actual CPU utilization provides a lens into the future. (…) demand fluctuations would be on par with the three classic industries where dynamic pricing is important (hotels, electricity, airlines) and dynamic prices would be essential for efficiency.”
Maximizing Profit of Cloud Brokers under Quantized Billing Cycles: a Dynamic Pricing Strategy based on Ski-Rental Problem - “The key idea of our algorithms is to use pricing signal to regulate user demand. One may argue that such an algorithm gives poor service to the user as it pushes tasks out of the queue in order to maximize cloud broker’s profit.”
Present or Future: Optimal Pricing for Spot Instances - “Pricing policy of spot resources should be carefully designed and the impact on both present and future should be considered.”
“You always pay the spot market price, not your bid.” (source) - Simple explanation of the bidding mechanism.
Deconstructing Amazon EC2 Spot Instance Pricing - “Cloud providers possessing large quantities of spare capacity must either incentivize clients to purchase it or suffer losses. Amazon is the first cloud provider to address this challenge, by allowing clients to bid on spare capacity and by granting resources to bidders while their bids exceed a periodically changing spot price.”
GCP Preemptible VMs vs AWS Spot Instances - “Google’s prices are fixed, whereas AWS uses a market model”.
“Look at the 3-month spot price history to estimate cost and to discover combinations of availability zone and instance type with extra capacity.” (source) - Users are seeking more transparency on the spot market.
The Eternal Cost Savings Of Netflix’s Internal Spot Market - When you’re big enough that creating an internal secondary market for instances makes economic sense.
AutoSpotting - Tool that easily and reliably converts (all) your existing AutoScaling groups to cheaper spot instances.
Targeted online advertisements marketplaces have a lot in common with traditional cloud marketplace. Some good inspiration there, from concepts to tech.
RTB Budget Pacing Summarized - A collection of budget pacing resources for targeted online advertisements.
Samsung’s online ads platform/exchange war story - How to scale to 5M bid request/s, 2ms Max Response Time.
RTB4Free
- Open Source Bidder and Demand Side Platform (DSP).
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.
Accounting for Developers 101 - A general introduction to history and vocabulary of accounting.
Accounting for Computer Scientists - Describes how to view accounting in the form of graphs in which money flows, then how these movements are materialized in the financial statements of a small company.
The Double-Entry Counting Method - Same premise as above, but way more detailed and complete, as it adds reporting and implementation details.
Accounting Memento For Entrepreneurs (US GAAP) - An interactive form to play with accounting concepts.
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.
Reconciliation: A game designed to frustrate the player - “Reconciliation is a business process which arises almost entirely because of a lack of structured data in the pipelines that convey money between businesses”. There are some hack to streamline the process, like adding an arbitrary discount to produce unique trailing decimals, or setup a couple of virtual bank accounts as proxy.
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.
Go DB Ledger - An open source accounting system that aims to make the recording of double entry bookkeeping transactions programmable.
Ledger - A scriptable financial ledger, designed to make it easy to model complex financial transactions.
Akaunting - Open source software designed for small businesses and freelancers.
Now that you’re somewhat familiar with the concepts and practice of accounting, here are some resources to help you implement that knowledge into software systems.
Moonpig: a billing system that doesn’t suck - Design decisions behind a billing and accounting system. Key takeaway: some companies still pays by checks; do not use floats; complex customer workflows; date and time issues; mutable data.
Books, an immutable double-entry accounting database service - Explain the basic data model of a double-entry accounting system relying on Google Spanner for internal use at Square.
TigerBeetle - A distributed financial accounting database to ensure that the money either moves, or doesn’t move, that it doesn’t get lost somewhere in between.
Django Hordak - Core functionality of a double entry accounting system for Django.
Managed accounts for Django - A ‘managed account’ is an allocation of money that can be debited and credited.
Triple‐entry accounting with blockchain: How far have we come? - “Triple‐entry accounting is a new and a more efficient way to address fundamental trust and transparency issues that plague current accounting systems. Triple‐entry accounting with blockchain, when properly implemented, can fundamentally improve accounting.”
Global companies needs to know how to juggle between local currencies.
Once you’ve got your accounts in order, you can start extracting insights and metrics from your financial data.
Accounts Demystified: The Astonishingly Simple Guide To Accounting - Helps you learn how to analyse and monitor your company’s financial performance.
The Games People Play With Cash Flow - “Malone created a new accounting metric, something he called ‘earnings before interest, depreciation, and taxes’, or EBITDA.” This is how a cable company CEO made sense of cash flow, like real-estate business did. The article starts with this example and describes other cash flow games for SaaS models.
Financial Intelligence for Entrepreneurs: What You Really Need to Know About the Numbers - Allows you to fully understand how to use financial data to make better decisions for your business.
What is FinOps - A framework for tech finance and business leadership teams to share the same language and processes of cloud operations and management.
Algebraic Models for Accounting Systems - Advanced abstract algebra applied to the analysis of accounting systems.
All the invoicing terms & conditions are materialzed by the contract signed between the end-user and the service provider. That’s the source from where we derives all the rules of the billing cycle.
Is this what Enterprise mean? - When contracts, invoicing and payments are not working together, you end up alienating your big enterprise customers. See the associated HN comments on bulk license purchase.
Entitlements untangled: The modern way to software monetization - “The concept of Entitlements encapsulates the feature access settings under various product variants (aka Pricing Plans or Packages), bridging the gap between how a product is sold and how it behaves for a variant. In essence, entitlements are a set of permissions defining what a customer (paying or non-paying) can do with your software application.”
CUDs vs. Commit Contracts vs. SUDs in Google Cloud - Explains the differences between various types of discounts and usage commitments in GCP.
Quantity discounts on a virtual good: The results of a massive pricing experiment - “Implementing price reductions ranging from 9–70% for large purchases, we found remarkably little impact on revenue, either positively or negatively.” If discounts are a placebo and are still widely used in the industry, maybe they are a marketing hack to lure big customers?
“It used to be I could just give a lump sum and let Google Ads play until there is no more budget. Not anymore.” - (source) - Google Ads used to implement a concept of capped actuals. A kind of monthly budget with rollover, which is an optimal billing scheme to limit surprises for customers. It always looked to me as a way to sell quotas.
Raising Prices is Hard - Backblaze post-mortem on raising prices on their main offer. They wanted to create an extension program based on credit system. This became a full-time job for a handful of their most senior engineers, and resulted in a six month project.
Details on Expiring DigitalOcean Credits - The reason you have to add an time limit on credits: unused ones accounts as liabilities on our balance sheet.
Hacking Scooters: How I Created $100k Worth Of Free Rides - A cautionary tale on how promo codes can be exploited to get unlimited free rides.
China’s Pinduoduo reports theft of online discount vouchers to police - The next level of fraud: “an online collective exploited a loophole on its platform to ‘steal’ tens of millions of yuan worth of discount vouchers”.
Council Directive 2016/1065 as regards the treatment of vouchers - European directive on the application of VAT when vouchers are involved.
The coupon code is a slap in the face - Point the negative consequences of users encountering a blank coupon field without having a coupon. See the update at the end of the article with research backing up this anecdote.
2017 Tax Software Developer’s Guides - A list of test cases for developers to test their tax code against.
{Digital,Cloud,Electronic,Online} Services VAT Rate Database - Centralize applicable VAT rates on foreign online services, for each country of residence (including territorial exceptions).
Global VAT & GST on digital services - List of countries requiring application of taxes on foreign provided online services.
“British supermarkets (…) charge you a fee for their backend card processing, but they subtract that fee from your checkout price.” (source) - Which allows them to claim the VAT on processing fees as input tax.
Streamlined Sales Tax Governing Board - A multi-states US initiative to automate and standadize sales tax accounting and collection.
The invoice materialize a consumed service or purchased product, waiting to be settled by a payment transaction.
Once issued, an invoice must be immutable.
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.
Credit note - Because an invoice is immutable, the only way to fully or partially cancel it is to produce a credit note.
Manta - Flexible invoicing desktop app with beautiful & customizable templates.
InvoicePlane - A self-hosted open-source application for managing your invoices, clients and payments.
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.
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.
EU eInvoicing - European standard on electronic invoice.
GOBL - JSON Schema, Open Source Go library, global tax database, with conversion tools, all in one.
The Best Payment Gateway for Startups - A benchmark of top payment providers, their pricing and models.
Avoiding Double Payments in a Distributed Payments System - RDBMS were build for banks around transactions to solve that specific issue. Then NoSQL came forcing us to carefully implement systems to avoid double spending.
Monzo’s bank transfers post-mortem - Or why you should be prepared for and work around gateway provider’s outages.
How to Build an Insurance Company - The importance of payment ops architecture.
EU’s Late Payment Directive - European rules on applicable fees for late payments.
High failure rate of Point Of Sale devices in the upper Midwest - The root cause? People wearing a lot of wool in low humidity air, generating a lot of static.
How ACH works: A developer perspective, part 1, part 2, part 3, part 4.
Handling system failures during payment communication - Dropbox’s experience trying to account for an unreliable payment provider.
Why was I charged? - Under a constant stream of user complaints about payments, WordPress created a dedicated subdomains to help customers understand unexpected transactions. The trick is to add the URL of that kind of site directly in the bank statement.
moov - Open-source infrastructure for financial technology.
Fintech Open Source Foundation - Another set of open-source projects for financial projects.
A receipt materialize the payment transaction.
The humble receipt gets a brilliant redesign - When a Netflix data engineer revisit receipts.
The long, long history of long, long CVS receipts - “CVS is a drugstore much like other drugstores, with one important difference: The receipts are very long.”
The most popular payment device.
‘Is that even legal?’: Companies may be sharing new credit or debit card information without you knowing - Some credit and debit card companies have “updating service” that allows new account numbers and expiry dates to be shared with merchants. Visa’s implementation is called VAU and Mastercard’s is ABU.
Strong Customer Authentication - Payment Services Directive 2, explained.
Address Verification System - A system checking the matching of customer’s billing addresses with the one associated with the credit card.
pci-blackbox - PCI-DSS compliant card system built on PostgreSQL and PL/pgSQL.
The old-fashioned way of payment: by the way of banks.
A (shallow) dive into the American banking system - Collection of miscellaneous notes primarily focused on the common cases of routable accounts, i.e. checking and savings.
Open IBAN - Free and public IBAN validation and calculation webservice.
Swift Codes - Swift / BIC codes for personal use only.
Swift Codes Repository - A repository that seems to scrape the website above.
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.”
20 years of payment processing problems - A huge collection of everything that went wrong, and still is, with payment APIs from the past 2 decades. Any issue exposed in this article that gets unaddressed will end up as stolen money.
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.”
Idempotency in the context of payments - “Idempotency prevents race conditions. Idempotency dictates that multiple identical requests from the same client do not result in a different final state.”
Optimizing payments with machine learning - Describes a classic payment workflow, then how machine learning can replace hard-coded business rules and fine-tune the payment failures/retries loop to increase the success rates of charges.
There’s monetary incentives to exploit your business. Be prepared to fight hordes of fraudsters and shady users.
Driving Global Fraud Losses Down While Empowering Business Growth - In this talk by Uber Eats, we learn from the biggest payment processor that “growing businesses with declining loss rates is extremely rare in the industry”. Also, fraud can takes several forms: chargebacks on non-perishable goods, promo abuse, refunds…
KYC and AML: beyond the acronyms - KYC is nuanced and fuzzy, because it is a stochastic process to reduce risk.
Awesome Fraud Detection Research Papers - Papers sourced from several conferences on all sort of fraud: credit card, payment transactions, loans, customs inspections, money laundering networks, and more.
The majority of fraud is exploiting the most common popular payment device: credit cards.
Reproducible Machine Learning for Credit Card Fraud detection - A practical handbook on how to identify patterns in transactions.
How I Stopped a Credit Card Thief From Ripping Off 3,537 People – and Saved Our Nonprofit in the Process - Describe a fraud technique known as “card testing”, in which massive batch of stolen cards are checked for their validity against your API.
How Candy Japan got credit card fraud somewhat under control - Suggestions involved either warning signals for trying to guess which orders might be fraud, or countermeasures to try to make things harder for the fraudsters.
Five Fun Fraud Facts - Another tiny collection of features we can feed to a ML system to detect fraud. Comments on HN also unearthed more qualifying signals and derived geodata on the transaction.
Credit Card Fraud Detection using Autoencoders in Keras - Tutorial on how to rely on anomaly detection to implement suspicious card transactions.
Training an ML model to score chargebacks - An example of a platform’s network effect, which allows to predict the likelihood of winning a dispute.
How credit card thieves use free-to-play apps to launder gains - To prevent abuses, service provider must strengthen both credit card verification and the account creation process.
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.
The Secret Trust Scores Companies Use to Judge Us All - Nearly everything we buy, how we buy, and where we’re buying from is secretly fed into AI-powered verification services that help companies guard against credit-card and other forms of fraud.
GCP improved account management policies to better support customers - Or why relying too much on fraud automation might lead to disgruntled users.
Digital Ocean’s Update on Customer Shutdown Incident - Aggressively shutting down user servers is good from a business point of view to prevent fraudster abusing free resources, until it’s not.
Awesome Credit Modeling - How to use statistical methods to classify applicants into categories to reduce risks. Lots of inspiration and research papers there to improve general scoring.
Best tools to automate fraud detection.
Benford’s law - Digit distribution can be a signal of accounting fraud.
Integer percentages as electoral falsification fingerprints - In the same spirit as above, this paper show that frequency of reported round numbers in election is a signal of man-made anomalies. Might be applicable in some fraud-fighting area.
Huber loss - “A loss function used in robust regression, that is less sensitive to outliers in data than the squared error loss.”
Peak Detection in the Python World - Simple way to detect outliers.
More than 600 million users installed Android ‘fleeceware’ apps from the Play Store - A new kind of fraud, in which apps silently keep charging users after the end of the trial period.
CEO Fraud - A billing team responsible for collecting payment is prey to this kind of fraud, in which the CEO is impersonated to commend exceptional payment transactions.
The Challenges of Operating a Computing Cloud and Charging for its Use - Skip the first 90% of this presentation by an AWS VP (which is about general system reliability). The last four slides are a good summary of what billing cloud services entails, especially the use of soft quotas to limit fraud.
Fraud in Telephony Networks - Most of telephony frauds gravitates around billing and the metering of micro-transactions. This paper feature a taxonomy (on page 6) differentiating the root causes, vulnerabilities, exploitation techniques, and the way fraudsters can benefits from them.
Users gets easily angry when it comes to money. UX and UI might helps a lot to reduce frustration.
Apple In-app purchase Human Interface Guidelines - Guide and recommendation on how to make auto-renewable subscriptions user-friendly.
Which has a higher conversion rate: A single long ecommerce checkout form or a multi-step one? - Focus first on other things in the cart, like easing anxiety and second-guessing by adding reassurance (trust marks, testimonials) near the credit card and completion steps, as well as some guarantee language that you may have used earlier in the product exploration process.
As stakeholder of the billing pipeline, you sat on all the critical data to measure and report on the health of the business.
Definition and collection of Key Performance Indicators (KPIs) worth monitoring.
Startup financial models - 12 templates compared for SaaS - A great source of inspiration to get better visibility in your operations.
16 Startup Metrics - The 2 critical metrics being Customer Acquisition Cost (CAC) and Customer Lifetime Value (CLV).
Thinking about growth and profit - Discuss the relationship between investments, profit and growth, and how it influence decisions on pricing, free trials and plan structure.
A Quantitative Approach to Product Market Fit - Metrics produced above have a greater reach, as they’re used as important signals to validate product-market fit.
Startup growth calculator - Simple yet effective interactive profitability calculator for startups.
An Overview of Visa - Great breakdown of Visa business models and metrics.
The SaaS Financial Model You’ll Actually Use - A complete tour of the financials of a startup, which gives you extra-context on how the metrics you produce fit into the larger picture.
How much net value do you produce per customer? The Customer Lifetime Value (CLV, or LTV for Life-Time Value) quantify that. 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: during the customer lifetime, the churn probability is not constant. Most of the time because of your free trial and vouchers. This article illustrate the influence of the distribution used to model the probability of a customer quitting.
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, which is better suited to discrete time intervals like monthly contracts, the former being more appropriate to continuous time process.
Survival Analysis For Customer Retention - Illustrates how retention can be better modelled using a survival function like Kaplan–Meier survival curves.
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.
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.
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.
A bunch of resources to keep track of the current status and progress of all companies operating in the domain.
Patents on billing systems of the dot-com era - All of them have been abandoned and constitute prior art. This means there is nothing to prevent anybody to implement or commercialize these concepts.
“You need a slightly more sophisticated developer team to cobble together a billing platform” (source) - Google’s Product Director take on building billing systems: you need a certain kind of engineers to tackle that domain. It is not for everyone.
AWS Cost Management announcements - The source of all new features added to the billing perimeter.
AWS reserved instances vs saving plan - A feature matrix of the different scheme and their average dicounts.
GCP billing release notes - Latest changes of GCP billing features.
GCP billing news - From the unofficial Google Cloud Platform newsletter.
More choice, less complexity: New Compute Engine pricing options on tap - A wrap-up of recent GCP pricing features.
Orbitera - GCP’s billing subsidiary.
DigitalOcean Billing changelog - All the latest billing updates on DO.
“Larry Page went to U of M and used the Michigan Terminal System. (…) when Google was working on App Engine, Page took inspiration from MTS and would exhort engineers to follow its example. (…) when I look at my AWS and GCP bills now, it feels very familiar!” (source) - The direct filiation between old-school university mainframes and current cloud services.
Engineering and Operations in the Bell System - Starting at page #445, the “10.5 Billing Equipment and Systems” section describe the history and technical evolutions of Bell’s phone calls metering and pricing.
The vanished grandeur of accounting - Accounting paintings were a significant genre in Dutch art.
Graphic methods for presenting facts - A way to optimize pricing using a physical model made in plaster of Paris, from 1914.
Billing is not funny.
Your contributions are always welcome! Please take a look at the contribution guidelines first.
The header image is based on a modified photo by Denny Müller.
[1]: Sapiens: A Brief History of Humankind (Harper, 2015). [↑]