AgentStack
SKILL verified MIT Self-run

010113 Polar Integration

skill-natuleadan-skills-010113-polar-integration · by natuleadan

Polar.sh payment integration — product sync, checkout, webhooks, multi-currency, MoR model, sandbox testing, and API reference.

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-natuleadan-skills-010113-polar-integration

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of 010113 Polar Integration? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Polar.sh Payment Integration

Overview

Polar.sh is a Merchant of Record (MoR) platform that handles payment processing, tax collection, and billing. This skill covers the full integration flow: product synchronization, checkout sessions, webhook handling, database schema, and sandbox testing.

Architecture

Products DB → Sync Service → Polar API (Products/Variants/Prices)
                                       ↓
Client → Checkout Session → Polar Hosted Flow → Order Created
                                       ↓
Polar → Webhook → Application → Update Payment Status → Fulfillment

Quick Reference

Environment Variables

  • POLAR_ACCESS_TOKEN — Server-side API token (format: polar_oat_*)
  • POLAR_WEBHOOK_SECRET — Webhook signature verification
  • NEXT_PUBLIC_POLAR_SANDBOX — Toggle sandbox/production (true or omitted)

Core Flows

  1. Sync products to Polar before checkout — each product+variant+currency becomes a Polar product
  2. Create checkout session with line items and metadata — Polar handles the hosted payment UI
  3. Handle webhooks for order lifecycle events (order.paid, checkout.expired, etc.)
  4. Verify signatures using Standard Webhooks spec — @polar-sh/nextjs handles this automatically

Supported Countries

Polar supports 50+ countries including US, EU, UK, Canada, Australia, Brazil, Mexico, Colombia, Peru, Chile, and others. See [Payment Flow](references/payment-flow.md) for MoR model details.

References

  • [Payment Flow](references/payment-flow.md) — Product sync, checkout, multi-currency, error handling, MoR model, localization
  • [Webhooks & Schema](references/webhooks-schema.md) — Webhook events, DB schema, repository patterns, signature verification
  • [API Reference](references/api-reference.md) — Polar REST API essentials (auth, products, checkout, orders)
  • [Sandbox & Setup](references/sandbox-setup.md) — Sandbox environment, API keys, webhook configuration
  • [Code Examples](references/code-examples.md) — Sync, checkout, webhook, cancel, raw API calls

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.