payments-polar

payments-polar is a skill for Claude Code from alifanov/ai-garage-launch. It costs 53 tokens per session (529 once invoked), scanned A, original, MIT.

A reference for adding Polar payments to a product, covering Polar as the seller of record, payment types, checkout, webhooks, and customer access.

In plain words
What is it for?
Use it to plan subscriptions or one-time sales, create checkout sessions, handle successful-payment notifications, and connect purchases to user accounts.
Why use it?
It explains the payment choices and steps that can otherwise lead to tax, legal, or access problems.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the garage plugin — 4 skills, 12 commands, 2 agents shipped together

Good fit Use it to plan subscriptions or one-time sales, create checkout sessions, handle successful-payment notifications, and connect purchases to user accounts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alifanov/ai-garage-launch/payments-polar
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alifanov/ai-garage-launch --skill payments-polar
Clone the repo
git clone --depth 1 https://github.com/alifanov/ai-garage-launch

Made for: Claude Code.

Or install garage, the plugin that ships this one along with the rest of its 4 skills, 12 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payments-polar

README.md
[![agentmods](https://agentmods.dev/badge/skills/alifanov/ai-garage-launch/payments-polar/github.svg)](https://agentmods.dev/skills/alifanov/ai-garage-launch/payments-polar)
Your own site
<a href="https://agentmods.dev/skills/alifanov/ai-garage-launch/payments-polar"><img src="https://agentmods.dev/badge/skills/alifanov/ai-garage-launch/payments-polar/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for payments-polar

Your own site · 80×15
<a href="https://agentmods.dev/skills/alifanov/ai-garage-launch/payments-polar"><img src="https://agentmods.dev/badge/skills/alifanov/ai-garage-launch/payments-polar.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00529
Opus 5.5 $0.00021 $0.00212
Sonnet 5.5 $0.00011 $0.00106
Haiku 4.5 $0.00005 $0.00053

Measured 2mo ago against content hash 2d3ca1d34e80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

payments-polar scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/payments-polar/SKILL.md · 49 lines

What it actually says

Платежи через Polar

Merchant of Record или процессор?

  • Процессор (Stripe) — ты сам отвечаешь за налоги, юрлицо, комплаенс. Часто нужно юрлицо в США.
  • Merchant of Record (Polar) — платформа = продавец записи: берёт на себя налоги/VAT и юрлицо. Работает для фаундеров из любой страны. Меньше боли на старте.

AI Garage использует Polar (MoR).

Подписка или разовая покупка?

  • Подписка — предсказуемый MRR, но нужен постоянный value. Подходит для инструментов регулярного использования.
  • Разовая — проще старт, нет удержания. Подходит для утилит/генераторов «сделал — отдал».

Выбирай по тому, как часто клиент возвращается к ценности.

Поток оплаты

[Купить] на сайте
   │
   ├─► сайт создаёт Checkout Session в Polar → получает ссылку на оплату
   │
   ├─► пользователь платит на странице Polar
   │
   ├─► Polar шлёт webhook payment_succeeded на твой сервер
   │
   └─► сайт открывает доступ к продукту (связка с пользователем Clerk)

Настраивается один раз, дальше работает автоматически.

Интеграция (Next.js)

  1. Аккаунт + организация в Polar, создать продукт и цену.
  2. Поставить SDK, ключи в env: POLAR_ACCESS_TOKEN, POLAR_WEBHOOK_SECRET.
  3. Кнопка «Купить» → Checkout Session → редирект.
  4. Webhook ловит payment_succeeded (и события подписки) → открывает доступ.
  5. Customer Portal из коробки — пользователь сам управляет подпиской.

sandbox → production

Проверь весь цикл в sandbox, затем переключи ключи и URL вебхуков на production. Проверь ещё раз на реальной (тестовой) карте.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 49 lines · 53 tokens per session scan A 2d3ca1d34e80

Subscribe to this mod's changes

payments-polar is a skill published in the GitHub repository alifanov/ai-garage-launch (2 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 529 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

payments-polar compared with skills from other repositories

payments-polar next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
payments-polaralifanov/ai-garage-launchSkill23mo agoMITA53Claude Code
appdirectServosity/msp-skillsSkill70yesterdaynoneA74Claude Code
td-synnexServosity/msp-skillsSkill70yesterdaynoneB167Claude Code
billingbarnburner121/claude-plugin-marketplaceSkill37mo agononeA9Claude Code
asc-ppp-pricingrorkai/app-store-connect-cli-skillsSkill1.1kyesterdayMITA45Claude Code
snaplii-cliSnaplii-Inc/agent-to-merchant-paymentsSkill8122d agoApache-2.0A184Claude Code
27-personal-brand-monetize-globalminhnv0807/ai-business-skillsSkill6412d agoMITA173Claude Code