stackpicks.dev
All alternatives
Payments

Best Open-Source Alternatives to Stripe

Stripe is the developer-default for payments — but their fees (2.9% + 30¢ in US, 3.9%+ outside) compound at scale, and their lock-in is real. Open-source alternatives focus on metering/billing (Lago, Polar) and on routing (Hyperswitch) — they don't replace the actual processor, they let you switch processors.

TL;DR — top pick

Hyperswitch

Hyperswitch is the open-source payment orchestrator built by JusPay (one of India's largest fintechs). It sits between your app and 80+ payment processors (Stripe, Razorpay, Adyen, Cybersource, etc.) so you can route, retry, and split payments without lock-in.

github.com/juspay/hyperswitch

All 3 alternatives ranked

#1

Hyperswitch

Apache 2.0Self-hostable★ ~15k
github.com/juspay/hyperswitch

Hyperswitch is the open-source payment orchestrator built by JusPay (one of India's largest fintechs). It sits between your app and 80+ payment processors (Stripe, Razorpay, Adyen, Cybersource, etc.) so you can route, retry, and split payments without lock-in. Rust core, MIT license, used by real companies handling $1B+/year.

Pick Hyperswitch if

You're scaling past $1M/year and want to negotiate processor fees by routing volume, or you operate in multiple geos with different processor strengths.

Skip if

You're early-stage with one processor — adding orchestration adds latency + complexity you don't need yet.

#2

Lago

AGPL-3.0Self-hostable★ ~9k
github.com/getlago/lago

Lago is open-source usage-based billing — the part of Stripe (Stripe Billing) that costs 0.5% per transaction plus subscription fees. Lago handles metering, plans, credits, coupons, invoicing, dunning. Pair with Stripe (or any processor) for the actual card capture; Lago owns the billing logic.

Pick Lago if

You're building usage-based or seat-based SaaS and want to control billing logic without Stripe Billing's cut.

Skip if

You're running flat-rate subscriptions only — Stripe Billing's included free tier is enough.

#3

Polar

Apache 2.0Self-hostable★ ~5k
github.com/polarsource/polar

Polar is a merchant-of-record platform built for indie devs — they handle the sales tax, VAT, GST, chargebacks on your behalf, and you get one wire transfer. Lower setup friction than Stripe + Quaderno + Anrok stitched together. Open-source platform, paid hosted service (4% + 40¢, drops to 1.4% at volume).

Pick Polar if

You're selling digital goods globally and don't want to deal with sales tax registration across 30 jurisdictions.

Skip if

You're only selling to one country, or you already have an accountant handling tax compliance.

Want the full curated stack?

StackPicks members get 100+ open-source tools across 22 categories with curator takes, 13 stack bundles, and 12 skill tracks. ₹99 lifetime.

See pricing
Best Open-Source Stripe Alternatives on GitHub (2026) — Hyperswitch & more — StackPicks — StackPicks