Exit sandbox
Announcing our $10M Seed Round, led by Accel

Payment infrastructure for the 21st century

The modern way to sell your SaaS and digital products

Framework Adapters

Integrate in under a minute

Next.js Adapter

Payments and Checkouts made dead simple with Next.js

  • Secure & Simple Checkouts

  • Integrated Customer Portal

  • Granular & Reliable Webhook Handler

  • Global Merchant of Record

import { Checkout } from "@polar-sh/nextjs";

export const GET = Checkout({
  accessToken: 'xxx'
});
Ingestion Based Billing

Usage Based Billing on Autopilot with Ingestion Strategies

LLM Strategy

Capture your Customer's LLM Usage & bill them for it

  • Automatic Token Consumption Ingestion

  • Prompt & Completion Tokens

  • Vercel AI SDK Support

import { Ingestion } from "@polar-sh/ingestion";
import { LLMStrategy } from "@polar-sh/ingestion/strategies/LLM";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";

const llmIngestion = Ingestion({ accessToken: 'xxx' })
  .strategy(new LLMStrategy(openai("gpt-4o")))
  .ingest("openai-usage");

export async function POST(req: Request) {
  const { prompt }: { prompt: string } = await req.json();

  const model = llmIngestion.client({
    externalCustomerId: "<USER_ID_FROM_YOUR_DATABASE>",
  });

  const { text } = await generateText({
    model,
    system: "You are a helpful assistant.",
    prompt,
  });

  return Response.json({ text });
}

The speed at which Polar is executing on the financial infrastructure primitives the new world needs is very impressive

Guillermo Rauch
Guillermo RauchCEO & Founder of Vercel

Polar as Merchant of Record

Forget all about billing & taxes. We handle it all for you as the merchant of record.

  • Sales Tax, VAT, GST, etc.

  • Withdraw with Stripe Connect

  • Detailed Transactions Ledger

Automated Product Benefits

Configure automated benefits which are granted to customers when they purchase your products.

Digital Products

Manage and distribute your digital products with our robust platform.

  • Flexible Pricing Models
  • Robust Analytics
  • Discount Codes

Simple Checkouts

Streamlined checkouts for a seamless user experience.

  • Custom Checkout Fields
  • Automatic Tax Calculation
  • Checkout Links & Embeds

Open Source Integrations

We believe in building in public & therefore proud to be open source.

  • Raycast Extension
  • Framer Plugin
  • Zapier Integration
Command Line Tools

The fastest way to add SaaS & digital products to your stack

npx polar-init

Bootstrap products, subscriptions, checkouts & webhooks in your Next.js or Nuxt.js project.

npx polar-migrate

Migrate from LemonSqueezy to Polar in under a minute.

npx checkout-link

Sell any kind of file from your CLI with a single command.

Early Member Pricing

4% + 40¢ per transaction