payments

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

A payment setup for a web product using Polar, a service that handles checkout, taxes, and subscription management for sellers.

In plain words
What is it for?
Use it to add products and prices, create a Buy button, process payment notifications, open access after payment, and let customers manage subscriptions. It covers testing in a sandbox before switching to production.
Why use it?
It removes the need to build payment handling, tax administration, and subscription controls from scratch. It also connects successful payments to user access through webhooks.

Command 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 add products and prices, create a Buy button, process payment notifications, open access after payment, and let customers manage subscriptions. It covers testing in a sandbox before switching to production.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alifanov/ai-garage-launch/payments
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.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/alifanov/ai-garage-launch/payments/github.svg)](https://agentmods.dev/commands/alifanov/ai-garage-launch/payments)
Your own site
<a href="https://agentmods.dev/commands/alifanov/ai-garage-launch/payments"><img src="https://agentmods.dev/badge/commands/alifanov/ai-garage-launch/payments/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/alifanov/ai-garage-launch/payments"><img src="https://agentmods.dev/badge/commands/alifanov/ai-garage-launch/payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 497 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.00027 $0.00497
Opus 5 $0.00014 $0.00249
Sonnet 5 $0.00005 $0.00099
Haiku 4.5 $0.00003 $0.00050

Measured 10d ago against content hash bc48dd31d6fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

payments 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 10d 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.

commands/payments.md · 33 lines

What it actually says

/garage:payments — монетизация через Polar

Монетизация — последним шагом, когда воронка уже доводит людей до ценности. Polar = Merchant of Record: берёт на себя налоги/юрлицо, работает для фаундеров из любой страны, без Stripe-боли.

Предусловия

Прочитай docs/07-infra.md (есть БД+авторизация) и docs/10-metrics.md (воронка понятна). Нет инфры — скажи запустить /garage:db-auth.

Что сделать

Опирайся на скилл payments-polar. Ключи — в env, не в код.

  1. Завести Polar — аккаунт, организация, создать продукт и цену (подписка или разовый платёж — см. скилл).
  2. Поставить SDK для Next.js, добавить ключи Polar в env (локально + Vercel).
  3. Кнопка «Купить» — создаёт Checkout Session и редиректит на страницу оплаты Polar.
  4. Webhook — принять событие payment_succeeded/подписки на свой сервер и открыть доступ к продукту (связать с пользователем Clerk).
  5. Customer Portal — из коробки: пользователь сам управляет подпиской.
  6. sandbox → production — проверить весь цикл в sandbox, затем переключить ключи и вебхуки на прод.

Проверь полный цикл: клик «Купить» → оплата → webhook → доступ открылся.

Артефакт

Запиши в docs/11-payments.md: тип монетизации (подписка/разовый), цена, какие события ловим, как открывается доступ, статус sandbox/prod. Обнови docs/STATE.md: шаг 11 [x].

➡️ Дальше

Пайплайн пройден 🎉. Дальше — итерации на данных: /garage:metrics регулярно, улучшай узкое место воронки. /garage:status покажет полную картину.

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. 10d ago First seen · 33 lines · 27 tokens per session scan A bc48dd31d6fd

Subscribe to this mod's changes

payments is a command published in the GitHub repository alifanov/ai-garage-launch (2 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 497 once invoked, about $0.0001 per session on Opus 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.