An open API service indexing awesome lists of open source software.

awesome-billing

💰 Billing & Payments knowledge for cloud platforms
https://github.com/kdeldycke/awesome-billing

Last synced: 8 days ago
JSON representation

Accounting

Bookkeeping

  • 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.
  • 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, with no paid edition.
  • Luca - 🆓 YAML accounting and JSON tax forms, solo-maintained.
  • GNUCash - (GTK+), Grisbi (C), Firefly III (PHP).
  • Formance Ledger - 💸 MIT-licensed programmable double-entry ledger with the Numscript DSL, multi-currency, REST API, and Docker deployment usable standalone. Formance sells Enterprise add-ons (Wallets, Flows, Reconciliation, pre-built connectors, SSO, RBAC, audit logs) on top, but the core ledger is fully functional in OSS.
  • Blnk - 💸 Apache-2.0 double-entry ledger exposed as a REST API, with Go, TypeScript, Python and Java SDKs. Inflight transactions hold a pending leg until it is committed or voided, and the reconciliation engine matches external statements against custom rules. Blnk Finance sells a managed cloud adding back-office reports, audit logs and team permissions on top, but the core ledger, reconciliation and identity features are fully functional in OSS.
  • 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.

Currencies

Double-Entry Model

Software design and implementation

  • 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.
  • 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.”
  • Managed accounts for Django - 🆓 A 'managed account' is an allocation of money that can be debited and credited. Community-maintained django-oscar extension.
  • 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. All features are in the Apache-2.0 OSS repo; TigerBeetle Inc. sells managed hosting and support, not gated features. It has been tested on Jepsen, which tested its strong serializability.
  • Django Hordak - 🆓 Core functionality of a double entry accounting system for Django, single-maintainer MIT library.

Basics

Business Intelligence

Customer Lifetime Value

  • 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.
  • 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.
  • PyMC-Marketing - 🆓 A full-featured Python package to analyze your users based on their "alive" and "dead" states. Apache-2.0 library stewarded by PyMC Labs, which only sells consulting services around it (no paid library tier).
  • 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.
  • Survival Analysis For Customer Retention - Illustrates how retention can be better modelled using a survival function like Kaplan–Meier survival curves.

Data Engineering

  • 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.”
  • 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.
  • 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.
  • 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.
  • The Soul of an Old Machine: Revisiting the Timeless von Neumann Architecture - Floats were suspicious even before the first general-purpose computer (EDVAC) was built: “Von Neumann wasn't entirely sold on why we might need floating-point numbers. He was quite vocal in his critique of floating-point numbers.” The author of this article complement this critique by illustrating the issue of precision and rounding.

Metrics

Tools

  • redash - 🆓 Connect and query your data sources, build dashboards to visualize data and share them with your company. Owned by Databricks but the hosted SaaS shut down in 2021, so the project is now community-maintained under the Databricks org with no paid Redash product.
  • Meltano - 🆓 Open source convention-over-configuration product for the whole data lifecycle, all the way from loading data to analyzing it. Meltano only sells managed Cloud hosting and support SLA on top of the OSS core.
  • Apache Superset - 🆓 Enterprise-ready business intelligence web application, governed by the Apache Software Foundation.
  • Practical Business Python - A blog collecting and spreading ideas on how to use Python more effectively in the business setting.

Calculator

  • EC2Instances.info - 💸 Easy Amazon EC2 Instance Comparison. Operated by Vantage as a free lead-gen surface for its commercial FinOps platform.
  • Infracost - 💸 Cloud cost estimates from Terraform code, surfaced as a breakdown in the terminal or as a diff in pull requests before resources are provisioned. Infracost Inc. sells a hosted dashboard (Infracost Cloud) on top of the Apache-2.0 CLI.
  • Cloudorado - 💸 A comparison matrix which use ECU (Amazon's vCPU) as a CPU power measure unit. Operated by Cloudorado as a commercial cloud-comparison product.

Competitive Analysis

Cloud providers

  • 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.
  • 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.

Contracts

  • 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.”
  • 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?
  • 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.
  • 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.

Cost Forecast

Coupons and Vouchers

Finance

Fraud

Billing

Cards

Statistics

  • Benford's law - Digit distribution can be a signal of accounting fraud.
  • 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.
  • 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.
  • Method to check if you swapped 2 digits - Standard manual accounting trick employed when isolating an error in a double ledger.
  • JPMorgan Chase v. Javice - Like Benford's law, applied to Excel: “JPMC first noticed irregularities with the list when a JPMC employee observed that the list contained exactly 1,048,576 rows, the maximum permitted by Microsoft Excel.” A count that stops at the limit of a tool is a sign of truncated or made-up data. Here, the executives of a startup sold for $175 million had bought that list of customers from a marketing firm.

Trust Score

  • Awesome List of IAM: Fraud links - Section dedicated to fraud management related to user accounts, from our sister repository.
  • KYC and AML: beyond the acronyms - KYC is nuanced and fuzzy, because it is a stochastic process to reduce risk.
  • Detecting fraudulent activity in a cloud using privacy-friendly data aggregates - Discusses a method to detect fraudulent activity (launching DDoS attacks, Bitcoin mining, …) by using non-intrusive, privacy-friendly data: billing data.
  • 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.
  • Tazama - 🆓 Open-source real-time transaction monitoring software for fraud and money laundering detection, governed by the Tazama Linux Foundation project. This is just an engine to define rules, weight them, and apply them to transactions. There is nothing specific to payments or financial transactions.
  • Mojaloop Fraud Risk Management - 🆓 Concrete AML rule implementations from the Mojaloop Foundation: transaction mirroring (90-100% amount-match window), multi-tier payee-graph traversal for layering detection, account-dormancy reactivation, large-transaction-payer, new-payee-transfer. Repo is archived but the rules are static reference material rarely seen elsewhere in OSS.
  • 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…

History

Humour

  • Superman III - The 1983 film in which Gus Gorman, a laid-off clerk who retrains as a programmer, embezzles from his employer's payroll by skimming the fractions of a cent it rounds down.
  • Detax - A site mockup of an tax avoidance product for small businesses.

Invoice

Electronic invoices

  • Universal Business Language - Most invoicing software can read and write UBL documents (XML) for data transfer.
  • Factur-X - 🆓 Python library to support the e-invoicing standard for France and Germany.
  • GOBL - 💸 JSON Schema, Open Source Go library, global tax database, with conversion tools, all in one. Invopop sells a managed e-invoicing SaaS implementation on top of the open spec.
  • Invoice Security Vulnerabilities - European Union introduced a "standard" in XML format, which comes with a set of security vulnerabilities.
  • EU eInvoicing - European standard on electronic invoice.

Extractors

  • InvoiceNet - 🆓 Deep neural network to extract intelligent information from invoice documents.

Generators

  • InvoicePlane - 🆓 A self-hosted open-source application for managing your invoices, clients and payments. Community project, no paid edition.
  • InvoiceGenerator - 🆓 Python library to generate simple invoices.
  • klirr - 🆓 Zero-maintenance FOSS CLI tool for generating beautiful invoices for services and expenses.
  • Invoice Builder - 🆓 Offline-first desktop app to create, manage and export invoices and quotes to PDF, with all data kept in a local database you own.
  • microinvoice - 🆓 Fast Node.js library to generate PDF invoices with PDFKit, no headless browser required.
  • 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.

Integrity

Structure

  • Content of EU invoices - The information required on a EU invoice is detailed by Article 226, Section 4 (Content of invoices) of Council Directive 2006/112/EC on the common system of VAT.
  • On GCP invoiced billing - Invoiced billing is a B2B-friendly payment happening after the service is consumed and an invoice issued. It seems to be a pain to setup on GCP but I suspect is a consequence of trying to reduce (costly) fraud.

Marketplace

Cloud Resources

Online Ads

  • Samsung's online ads platform/exchange war story - How to scale to 5M bid request/s, 2ms Max Response Time.
  • RTB4Free - 🆓 Apache-2.0 OpenRTB 2.0-compliant bidder and Demand Side Platform (DSP). Largely dormant since late 2022, but the only OSS DSP reference in this niche.
  • RTB Budget Pacing Summarized - A reading list distilling research papers from Turn Inc., Yahoo, and LinkedIn on RTB budget pacing techniques. Static resource: dated but still a useful entry point into the literature.
  • Customized Regression Model for Airbnb Dynamic Pricing - This paper describes the pricing strategy model deployed at Airbnb.
  • Vickrey auction - Hinted by an HN comment, in which yes, “‘Asking people what they'd pay for and how much rarely works.’ (…) 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?”
  • 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.”
  • source - ) - Mechanical Turk's rake was “20% (…) on the reward and bonus amount”, with a minimum fee of $0.01 per bonus payment, so a 7-cent bonus is billed one cent instead of 1.4: an effective 14.3% instead of 20%. The requester's round_payment() snaps every payout onto the 5-cent grid where that truncation always applies, and holds anything below 7 cents in the worker's wallet: “~$50 a day” saved. Rounding per transaction rather than per invoice hands the remainder to whoever picks the transaction amounts.
  • Papers we love: Auctions and Bidding - A collection of papers on bidding and auctions.

Payments

Bank Accounts

  • 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.
  • Swift Codes - Swift / BIC codes for personal use only.
  • Swift Codes Repository - 🆓 Static JSON dataset of SWIFT/BIC codes for banks worldwide, scraped from the site above. Last refreshed in 2019 but still the largest free reference; SWIFT codes change slowly so the data remains broadly usable.
  • EPC QR code - EU standard for QR codes used to transfer money between bank accounts via SEPA.
  • Open IBAN - 🆓 Free and public IBAN validation and calculation webservice.

Credit Cards

Online Payments

  • 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.
  • 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.
  • 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.”
  • 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.”

Receipt

  • How to Build an Insurance Company - The importance of payment ops architecture.
  • 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.
  • moov - 🆓 Suite of Apache-2.0 libraries for financial technology, including moov-io/ach, iso8583, and watchman. No paid product on top.
  • Fintech Open Source Foundation - 🆓 Linux Foundation project hosting open-source projects for financial services.
  • Hyperswitch - 💸 Open-source backend for payment processing. Juspay sells Hyperswitch Cloud and a self-host Enterprise edition; the OSS is functionally complete with 90+ connectors, vault, routing, 3DS, and fraud orchestration.
  • 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.
  • Polar - 💸 Open-source monetization platform to sell SaaS and digital products. Polar Software Inc. runs the hosted polar.sh service as the merchant of record, handling billing, sales tax and VAT remittance for a cut of each transaction; the self-hostable OSS ships the full stack (checkout, subscriptions, usage metering, license keys) on top of your own Stripe account.
  • 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 was to add this URL directly in the bank statement.
  • Whop - Platform to accept payments, manage subscriptions and sell software, services or digital products worldwide, at competitive fees. Partner link: the sponsor of this list earns a commission from Whop, at no extra cost to you.
  • Monzo's bank transfers post-mortem - Or why you should be prepared for and work around gateway provider's outages.
  • EU's Late Payment Directive - European rules on applicable fees for late payments.
  • part 1 - , part 2, part 3, part 4, part 5.
  • Handling system failures during payment communication - Dropbox's experience trying to account for an unreliable payment provider.

Pricing

Hybrid

  • The Three Part Tariff - Beyond linear pricing, there is a place for additional platform fees and free-tiers in the pricing structure.

Market Research

  • 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.
  • Personalised pricing and EU law - Some cases of price personalisation are prohibited in EU due to consumer protection and data protection rules.
  • 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.”
  • 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).

Strategy