add-payments

Integrate Polar payments into a Next.js and Supabase app for checkout and webhooks.

4|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/JocDLC/saas-factory-v5 --skill add-payments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-payments
Source: https://github.com/JocDLC/saas-factory-v5/tree/main/.claude/skills/add-payments
Command: npx skills add https://github.com/JocDLC/saas-factory-v5 --skill add-payments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrates Polar payments as Merchant of Record into a Next.js + Supabase project, delivering a complete checkout, webhooks, billing data, and frontend flow with minimal setup.

Core Features & Use Cases

  • End-to-end billing: checkout creation, webhook handling, purchases table, and access control based on subscription status.
  • Simplified merchant-of-record management via Polar overlay on Stripe, with idempotent webhooks and automated access provisioning.
  • Use Case: A SaaS app wants to monetize via subscriptions, managing tax and invoicing automatically.

Quick Start

Follow the seven-step setup to wire Polar payments into your Next.js + Supabase project.

Frequently Asked Questions about add-payments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Polar payments into a Next.js and Supabase app?

To integrate Polar payments into a Next.js and Supabase app, you wire endpoints, migrations, and webhook verification using the Polar SDK to manage checkout, billing data, and access control based on subscription status.

What is a merchant-of-record billing flow and when do I need it for my SaaS?

A merchant-of-record billing flow manages checkout, tax handling, and invoicing automatically. You need it for SaaS workflows requiring subscription monetization, where automated user access provisioning and tax compliance are handled by a provider overlaying Stripe.

Do I need a pre-existing login flow to set up Polar subscriptions?

Yes, you need a pre-existing /add-login flow before setting up Polar subscriptions. Proper environment configuration and the Polar SDK are also required to wire webhook verification, idempotent endpoints, and manage access control based on subscription status.

How does webhook handling work for Polar checkout in a Supabase project?

Webhook handling for Polar checkout in a Supabase project works by verifying webhook events idempotently to provision automated user access. It updates a purchases table and manages access control based on the received subscription status.

What is the best way to manage automated user access control for SaaS subscriptions?

The best way to manage automated user access control for SaaS subscriptions is using a merchant-of-record integration like Polar. It overlays Stripe to handle tax and invoicing, using idempotent webhooks to provision access based on subscription status.