polar-billing

Featured

This skill should be used when working on Polar billing system, Stripe integration, subscription lifecycle, checkout flows, or benefit provisioning.

AI & Automation 1,141 stars 108 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Polar Billing System Comprehensive guide to Polar's billing infrastructure, covering entities, flows, Stripe integration, and benefit provisioning. ## Quick Reference ``` Checkout → Payment → Order → Transaction → Benefits ↓ Subscription (if recurring) ↓ Subscription Cycle → Order → ... ``` ## Table of Contents 1. [Core Entities](#1-core-entities) 2. [Entity Relationships](#2-entity-relationships) 3. [Main Services](#3-main-services) 4. [Dramatiq Background Tasks](#4-dramatiq-background-tasks) 5. [Stripe Integration](#5-stripe-integration) 6. [Subscription Lifecycle](#6-subscription-lifecycle) 7. [Proration System](#7-proration-system) 8. [Benefits & Credits](#8-benefits--credits) 9. [Dunning & Payment Retry](#9-dunning--payment-retry) 10. [Transaction Ledger](#10-transaction-ledger) 11. [Key File Locations](#11-key-file-locations) --- ## 1. Core Entities ### Checkout **File:** `server/polar/models/checkout.py` Shopping cart/payment session before order confirmation. | Field | Type | Description | |-------|------|-------------| | `status` | CheckoutStatus | open, expired, confirmed, succeeded, failed | | `payment_processor` | PaymentProcessor | stripe, manual | | `client_secret` | str | Unique identifier for frontend | | `amount`, `currency` | int, str | Price in cents | | `tax_amount`, `discount_amount` | int | Calculated amounts | | `allow_trial`, `trial_end` | bool, datetime...

Details

Author
fcakyon
Repository
fcakyon/claude-codex-settings
Created
1 years ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

billing

Use for recurring revenue on Stripe — subscriptions, plans/tiers, trials, renewals, cancellation, proration, automated invoicing, usage-based/metered billing (Billing Meters), dunning/Smart Retries, the Customer Portal, and subscription tax basics. Triggers — "subscription", "recurring", "plan", "tier", "trial", "renewal", "cancel subscription", "proration/prorate", "upgrade/downgrade plan", "metered/usage-based billing", "billing meter", "meter event", "invoice/dunning/failed payment/retry", "customer portal", "subscription checkout", "Stripe Tax on subscriptions". Not for one-time payments (see stripe-suite:payments) or marketplace payouts (see stripe-suite:connect). API version pinned 2026-06-24.dahlia.

0 Updated 1 months ago
Florkin
AI & Automation Listed

monetization-and-billing

Implementing Stripe billing, subscription management, tiered access control, and payment infrastructure for SaaS platforms. Use when integrating Stripe Checkout, Subscriptions, Webhooks, Customer Portal, or metered billing. Also use when implementing tier-based feature gating (free vs paid), upgrade/ downgrade flows, trial periods, invoice handling, region-specific payment methods (PIX, Boleto, SEPA, ACH), or any payment-related backend logic. Use when designing Supabase schemas for billing state, RLS policies that check subscription tier, or webhook handlers that sync Stripe state to your database. Even if the user just mentions "pricing", "plans", "paywall", "subscription", or "monetization", use this skill. Never assume Stripe behavior — verify against current Stripe docs.

2 Updated today
Canhada-Labs
AI & Automation Listed

api-commerce-stripe

Stripe payment processing — Checkout Sessions, Payment Intents, subscriptions, webhooks, Connect, customer management, error handling

24 Updated 3 days ago
agents-inc