Payments and commerce.One API.

Accept payments, sell products, and get paid — without stitching three platforms together.

LeanRails API
PaymentsCommerceSettlementPayouts
Your product

Powering payments for teams that ship fast

Vercel
Vercel
Vercel
Vercel
Vercel
Vercel
Vercel

You shouldn't need three
vendors to sell a product.

  • One platform for payments.
  • Another for your storefront.
  • A spreadsheet to reconcile them.

LeanRails replaces the stack — payments, commerce, and settlement, wired together from day one.

Accept payments
Sell products
Run payouts
Payments

Accept payments anywhere.

Cards, wallets, refunds, disputes — a single endpoint handles it all. Every transaction settles automatically and your books stay balanced without a single spreadsheet.

  • Full payment lifecycle in one call
  • Automatic settlement and reconciliation
  • Real-time webhooks on every state change
  • Accounting that's always penny-accurate
$49.99ID: pi_30JtzP...
Confirmed
Captured
Settled

Built for the way you already work.

If you've integrated a payments API before, you'll feel at home. If you haven't, the docs will get you there in an afternoon.

Stripe-compatible

If you know Stripe, you know LeanRails. Most migrations finish in days.

Type-safe SDK

Full TypeScript definitions. Your editor catches mistakes before your tests do.

Test mode that mirrors production

sk_test_ keys hit real infrastructure. No sandboxes that silently drift.

Idempotent by default

Every write endpoint accepts an idempotency key. Retry without side effects.

Create a paymentCreate a productCreate a checkout linkListen for events
const payment = await leanrails.paymentsIntents.create({
  amount: 4999,
  currency: "usd",
  customer: "cus_AO4FzPnKxwHDKj",
});

Your money is safe.
So is your customers'.

Enterprise-grade edge. Cloudflare Enterprise handles DDoS, WAF, and bot management on every request.

Cards never touch your servers. Tokenized before they reach us. PCI burden stays minimal.

Append-only records. Corrections create reversals, never edits. Your audit trail is always intact.

No rounding errors. Integer math on every amount. Every cent lands where it should.

Full audit trail. Every action logged with who, what, when, and why.

One price. Everything included.

2.9% + $0.30
per successful charge
Get started
  • Unlimited API calls
  • Hosted checkout & payment links
  • Webhooks & real-time events
  • Full dashboard access
  • Commerce tools — catalog, orders, inventory
  • Automated settlement & payouts

Enterprise

Processing over $1M/month? We'll build you a custom plan with dedicated support and SLAs.

Contact sales

Go live in five minutes.