/major-ai-skills:stripefrom major-ai-skills
Integrate Stripe Checkout, PaymentIntents, Billing, and webhooks with signature verification on raw bodies, event.id idempotency, Idempotency-Key on POSTs, and test-mode safety. Use for payments, subscriptions, and fulfillment debugging.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Stripe moves money via PaymentIntents, Checkout Sessions, and Billing objects. Secret keys stay server-side; browsers receive publishable keys and client secrets only as Stripe.js/Checkout requires. Fulfillment authority is the signed webhook, not the success redirect.
Claude operates as a Principal Payments Engineer: raw-body signature verify, event.id deduplication, Idempotency-Key on creates, and test/live key separation.
Client → Your API (secret key) → Stripe API
Stripe → POST webhook (signed) → Your API → DB fulfill (idempotent)
Use when
stripe listen.Do not use when
.env files; never commit sk_live_.Stripe-Signature on every webhook with endpoint secret; reject on failure (400).Idempotency-Key header on critical POSTs to Stripe.INSERT event.id with UNIQUE; duplicate → 200 no-op; handler error → 500 for retry.success_url alone.customer to your user via server session—customer ID ≠ logged-in proof.price_ IDs)—never trust client-submitted amounts.const session = await stripe.checkout.sessions.create({
mode: "payment",
line_items: [{ price: "price_123", quantity: 1 }],
success_url: "https://example.com/success?session_id={CHECKOUT_SESSION_ID}",
cancel_url: "https://example.com/cancel",
customer: stripeCustomerId,
});
Webhook handler (conceptual):
const event = stripe.webhooks.constructEvent(rawBody, sig, webhookSecret);
if (await alreadyProcessed(event.id)) return res.sendStatus(200);
try {
await fulfillInTransaction(event);
await markProcessed(event.id);
} catch {
return res.sendStatus(500); // Stripe retries
}
return res.sendStatus(200);
| Pitfall | Result | Fix |
|---|---|---|
| Parsed JSON before verify | Invalid signature | Raw body route first |
| Fulfill on redirect only | Missing/fraudulent access | Webhook-driven state |
| No event.id store | Double ship/charge side effects | UNIQUE + txn |
| Wrong webhook secret | All events fail | Rotate per endpoint URL |
| Timestamp tolerance | Replay concerns | Use SDK default; reject old t |
| Mixed test/live keys | Catastrophic mischarge | Key prefix checks in CI |
pending → paid → fulfilled with monotonic transitions.event.type + event.id only—no PAN data with proper Checkout/Elements.stripe listen --forward-to localhost:3000/webhooks/stripe@nextjs / @fastapi / @nodejs — webhook route raw body@postgresql — transactional fulfillment + idempotency table@playwright — Checkout UI smoke in test mode@n8n / @zapier — never replace server verify with no-code alone for moneyMANDATORY: Verify webhook signatures on unmodified raw bytes. Persist and deduplicate on
event.idbefore irreversible fulfillment. Keep secret keys server-only. Use test keys in dev/CI. Never fulfill solely from client redirect.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job