Skip to content
Back to skills

launch-audit-lite

ASecurity

Quick pre-launch payments check for a Polar-powered web app. Use when asked "am I ready to launch?", "go live with Polar", or "switch from sandbox to production", to catch the mistakes that most often lose money or lock out paying users.

  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agentsgonextjsnodetestinggitapi

Works with

  • api

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add shiptopaid/shiptopaid-lite --skill launch-audit-lite --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of launch-audit-lite?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for launch-audit-lite
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shiptopaid-launch-audit-lite/badge)](https://www.skillsdirectory.com/skills/shiptopaid-launch-audit-lite)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: launch-audit-lite
description: Quick pre-launch payments check for a Polar-powered web app. Use when asked "am I ready to launch?", "go live with Polar", or "switch from sandbox to production", to catch the mistakes that most often lose money or lock out paying users.
---

# Launch audit (lite)

A 15-minute go/no-go check before you take real payments with Polar. Report each
item as PASS, FAIL or NOT RUN, with the command or evidence. A successful build
or a working checkout URL alone does not mean you're ready.

## When to use
- Right before switching `POLAR_SERVER` from `sandbox` to `production`.
- After changing billing, auth or deployment config.

## Prerequisites
- The app runs locally and in its production deployment.
- You can see the production Polar dashboard (Settings → Webhooks, Products).

## Procedure and checklist

### 1. Environment
- [ ] `POLAR_SERVER=production`, and the access token, product IDs and webhook
      secret all come from the **production** org. Sandbox and production are
      separate orgs with separate IDs and secrets.
- [ ] `APP_URL` (and your auth URL) is the real HTTPS domain.
- [ ] Node matches the SDK: `@polar-sh/sdk` requires Node >= 22
      (`node -v`; set `"engines"` and `.nvmrc`).
- [ ] No secrets in git: `git log -p | grep -E 'polar_(oat|pat)_'` returns nothing,
      and `.env*` is gitignored except `.env.example`.

### 2. Webhooks
- [ ] A production webhook endpoint (HTTPS) is registered for `subscription.*`
      (and `order.*` if you sell one-time products).
- [ ] The handler reads the **raw** body (`await request.text()`) and verifies it
      before parsing; an invalid signature returns 403.
- [ ] Duplicate deliveries (same `webhook-id`) are ignored.
- [ ] Only your paid product IDs grant access. A subscription to any other product
      must not unlock the paid tier.
- [ ] An older event delivered late (new webhook-id, older `modified_at`) cannot
      restore access after revocation.

### 3. Access
- [ ] Logged out → sign-in; free user → upgrade; active/trialing subscriber → access.
- [ ] Paid API routes and server actions are checked server-side too, not just pages.
- [ ] A forged `?checkout_id=` on the success URL grants nothing (only webhooks grant).
- [ ] Customer portal works for subscribers and shows a friendly notice for users
      who never checked out (Polar returns 422 "Customer does not exist.").

### 4. Business basics
- [ ] Terms, privacy and refund pages are linked from the footer and checkout flow.
- [ ] A monitored support email is shown.
- [ ] Checkout errors show a retry screen instead of a 500.

### 5. Production check (no real card)
- [ ] Don't test production with your own real card. Polar asks you not to run
      test purchases with real card details: payment processors treat it as card
      testing, which can block the card or your account, and it triggers a Polar
      account review. Payments, renewals, cancellations and refunds are tested
      in the sandbox.
- [ ] To check the production setup end to end, create a 100% discount code in
      the production org, restricted to your paid product, with maximum
      redemptions 1. For a subscription, set the duration to Forever: Polar
      doesn't ask for a card on 100%-forever subscriptions, so nothing renews at
      full price later. Check out with it as a new user, confirm the production
      webhook delivery succeeded in the dashboard and access unlocked, then
      cancel the subscription and confirm access behaves as your policy says.
      Delete the code afterwards.
- [ ] `npm run build` passes in a clean clone (Next.js auto-loads `.env.local`, so
      never move or rename it to test this; use `git worktree add`).

## Common mistakes
- Shipping with a sandbox token or sandbox product ID in production env.
- Registering the webhook in sandbox but not in production (each org has its own).
- Parsing JSON before verifying the signature. Verification needs the exact raw bytes.
- Granting access from the checkout success redirect instead of the webhook.
- Testing with `@example.com` emails: Polar rejects undeliverable domains with 422.
- "Testing" production with your own real card and refunding it. Use the sandbox,
  or a 100% discount code in production (step 5).

## Official Polar docs
- Sandbox vs production: https://polar.sh/docs/integrate/sandbox
- Test transactions (no real cards in production): https://polar.sh/docs/merchant-of-record/account-reviews
- Discount codes (duration, product restriction, redemption limits): https://polar.sh/docs/features/discounts
- Webhook endpoints and deliveries: https://polar.sh/docs/integrate/webhooks/endpoints,
  https://polar.sh/docs/integrate/webhooks/delivery

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.