Ns setup stripe

From Melvynx/saveit.now · View interactive version

Ns setup stripe is an AI agent skill from the GitHub repository Melvynx/saveit.now. Configure Stripe for NowStack Mobile web and Android payments while preserving Apple IAP on iOS. Use for price ids, keys, webhooks, and payment config.

How to use this skill

Skill file

Setup Stripe - NowStack Mobile

<objective>

Configure Stripe where this repo uses Stripe: web and Android payment surfaces, with server-side logic in Convex. iOS production payments stay on Apple IAP.

</objective>

<rules>

</rules>

<first_steps>

Read:

sed -n '1,260p' site-config.ts
find convex -maxdepth 3 -type f | sort
rg -n "STRIPE|stripe|iap|payment|price|product" site-config.ts convex web-app mobile-app

If editing Convex code, read:

sed -n '1,220p' convex/_generated/ai/guidelines.md

</first_steps>

<workflow>

  1. Preflight current payment shape from site-config.ts, Convex payment functions, web checkout UI, and mobile payment code.
  2. Ask for Stripe mode (test or live) and required keys. Stop until provided.
  3. Set server-side Stripe values in Convex env with npx convex env set.
  4. Update config/code for the price/product ids actually used by this repo.
  5. Verify Convex compile plus changed web/mobile surfaces.
  6. For iOS, verify the Apple IAP product id remains configured and do not replace it with Stripe.

</workflow>

<env_examples>

Use the names actually consumed by the current code. Common values may include:

npx convex env set STRIPE_SECRET_KEY "sk_test_..."
npx convex env set STRIPE_WEBHOOK_SECRET "whsec_..."
npx convex env set STRIPE_PRICE_ID "price_..."

If the code uses different names, follow the code.

</env_examples>

<verification>

npx convex dev --once
cd web-app && npm run typecheck
cd web-app && npm run build
cd mobile-app && npx tsc --noEmit

For live Stripe object creation, dry-run or inspect first, then require explicit confirmation before mutating the user's Stripe account.

</verification>

<success_criteria>

</success_criteria>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.