Launch SaaS, Products & Memberships in minutes

Merchant of Record - Leave upsales, billing and international taxes to us.

polar.sh/

Automated benefits like never before

Sell access to your premium apps, services or APIs with ease.

Just an Example

$9/mo

Polar has no monthly fees. This tier is only an example of what you could offer your audience in minutes using Polar.

Private GitHub repository
Discord Support Channel
License Key
Binary Downloads
Polar transactions view

Leave upsales, billing and international taxes to us

  • Polar as Merchant of Record
  • US Sales Tax & EU VAT handled
  • Read more

Analytics

Keep track of your sales with our built-in analytics dashboard

Integrate Polar in seconds

Use our SDKs to integrate Polar into your apps and platforms. Webhooks, OAuth, and more.

Polar crowdfunding badge embedded on a GitHub issue

Issue Funding & Rewards

Turn issues into a crowdfunded backlog and share the funding with your contributors.

Build with Polar without any headaches

  • Use the Polar SDK on your platform
  • Generate Checkout Sessions
  • Consume our reliable Webhooks
  • Reconcile checkouts with your own database
src/app/api/webhook/polar/route.ts
export async function POST(request: NextRequest) {
	const requestBody = await request.text();

	const webhookSecret = Buffer.from(env.POLAR_WEBHOOK_SECRET).toString(
		"base64",
	);
	const wh = new Webhook(webhookSecret);
	const webhookPayload = wh.verify(requestBody, request.headers);

	switch (webhookPayload.type) {
		case "checkout.created":
			break;
		case "checkout.updated":
			break;
		default:
			console.log(`Unhandled event type ${webhookPayload.type}`);
	}

	return NextResponse.json({ received: true });
}
Early Member Pricing

4% + 40¢

We only earn when you do. See how our fees apply.