Polar Payments in LaunchFast Starter Kits: A Merchant of…

Polar Payments in LaunchFast Starter Kits: A Merchant of Record with No Extra Dependencies

3 min read
Rishi Raj JainRishi Raj JainAuthor

Polar payments are built into every LaunchFast starter kit, across Astro, Next.js, and SvelteKit. Polar sits next to Stripe, Creem, and Waffo Pancake as a first-class payment provider, so you can pick the checkout that fits your product and switch between them without rewriting your purchase flow.

LaunchFastStart shipping your product.$99

What is Polar?

Polar is a merchant of record (MoR) built for developers. As the legal seller, Polar handles payments, sales tax, and compliance, and sells one-time products and subscriptions through a hosted checkout.

What stood out to us while building the integration:

  • No extra dependencies: The starter kit calls the Polar API with fetch and verifies webhooks with the Web Crypto API, so it runs the same on Node.js, Vercel, Netlify, and Cloudflare Workers.
  • Standard Webhooks: Polar signs every webhook with the open Standard Webhooks spec.
  • A real sandbox: A separate sandbox environment where no real money moves, with its own tokens, products, and webhooks.

Getting Started with Polar

  1. Choose Your Framework: Select from Astro, Next.js, or SvelteKit
  2. Create an Organization: Sign up on Polar and create an organization
  3. Create a Token: Create an Organization Access Token in Settings > Developers
  4. Add a Product: Create a product and copy its product ID
  5. Add the Webhook: In Settings > Webhooks, point a webhook to https://<your-domain>/api/polar/webhook, listening to order.paid and subscription.active, and copy its secret

The setup guide walks through the checkout button, the webhook route and every environment variable.

Testing

Set POLAR_ENVIRONMENT="sandbox" and use an access token, product, and webhook from the Polar sandbox. Sandbox and production use separate tokens, products, and webhook secrets, so swap all of them and set POLAR_ENVIRONMENT="production" when you go live.

What’s Included

Every LaunchFast starter kit with Polar support includes:

  • ✅ Checkout Button: A drop-in component that sells your default product or any product you pass it
  • ✅ Checkout Route: Creates a Polar checkout session and redirects users to it
  • ✅ Webhook Route: Standard Webhooks verification with replay protection
  • ✅ Runs Anywhere: No SDK, just fetch and the Web Crypto API

Pricing

Polar support is included in all our starter kits at no additional cost:

Other Payment Providers

Polar sits alongside the other payment providers LaunchFast supports:

Get Started Today

Ready to sell worldwide with Polar as your merchant of record?

Read the Polar setup guide, then Get LaunchFast Starter Kit and start selling!

Continue reading

Stop rebuilding auth and billing. Start shipping your product.