stripe-payments

stripe-payments is a skill for Claude Code from Ertinox7711/SGRR-AGI-V2. It costs 101 tokens per session (2,352 once invoked), scanned A, a copy of stripe-payments, MIT.

A Stripe payment integration guide for web applications. Stripe is a service that processes online payments, recurring billing, and related customer actions.

In plain words
What is it for?
Use it to add one-time payments, subscriptions, customer billing pages, payment forms, and verified webhook handling.
Why use it?
It helps choose between Stripe's payment methods and avoids common mistakes when handling checkout, subscriptions, and webhook notifications.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to add one-time payments, subscriptions, customer billing pages, payment forms, and verified webhook handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ertinox7711/sgrr-agi-v2/stripe-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.

Any agent
npx skills add Ertinox7711/SGRR-AGI-V2 --skill stripe-payments
Clone the repo
git clone --depth 1 https://github.com/Ertinox7711/SGRR-AGI-V2

Made for: Claude Code.

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 stripe-payments

README.md
[![agentmods](https://agentmods.dev/badge/skills/ertinox7711/sgrr-agi-v2/stripe-payments/github.svg)](https://agentmods.dev/skills/ertinox7711/sgrr-agi-v2/stripe-payments)
Your own site
<a href="https://agentmods.dev/skills/ertinox7711/sgrr-agi-v2/stripe-payments"><img src="https://agentmods.dev/badge/skills/ertinox7711/sgrr-agi-v2/stripe-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 stripe-payments

Your own site · 80×15
<a href="https://agentmods.dev/skills/ertinox7711/sgrr-agi-v2/stripe-payments"><img src="https://agentmods.dev/badge/skills/ertinox7711/sgrr-agi-v2/stripe-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,352 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 100% copy Near-identical to another mod 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.00101 $0.02352
Opus 5.5 $0.00040 $0.00941
Sonnet 5.5 $0.00020 $0.00470
Haiku 4.5 $0.00010 $0.00235

Measured 1mo ago against content hash 80760d8bd8a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stripe-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 1mo 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.

Origin

This is a copy

100% identical to stripe-payments — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/stripe-payments/SKILL.md · 341 lines

How it starts

The opening of the file, as written. The whole thing — 341 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stripe Payments

Add Stripe payments to a web app. Covers the common patterns — one-time payments, subscriptions, webhooks, customer portal — with working code. No MCP server needed.

Which Stripe API Do I Need?

You want to... Use Complexity
Accept a one-time payment Checkout Sessions Low — Stripe hosts the payment page
Embed a payment form in your UI Payment Element + Payment Intents Medium — you build the form, Stripe handles the card
Recurring billing / subscriptions Checkout Sessions (subscription mode) Low-Medium
Save a card for later Setup Intents Low
Marketplace / platform payments Stripe Connect High
Let customers manage billing Customer Portal Low — Stripe hosts it

Default recommendation: Start with Checkout Sessions. It's the fastest path to accepting money. You can always add embedded forms later.

Setup

Install

npm install stripe @stripe/stripe-js

API Keys

# Get keys from: https://dashboard.stripe.com/apikeys
# Test keys start with sk_test_ and pk_test_
# Live keys start with sk_live_ and pk_live_

# For Cloudflare Workers — store as secrets:
npx wrangler secret put STRIPE_SECRET_KEY
npx wrangler secret put STRIPE_WEBHOOK_SECRET

# For local dev — .dev.vars:
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
STRIPE_PUBLISHABLE_KEY=pk_test_...

Server-Side Client

import Stripe from 'stripe';

// Cloudflare Workers
const stripe = new Stripe(c.env.STRIPE_SECRET_KEY);

// Node.js
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!);

One-Time Payment (Checkout Sessions)

The fastest way to accept payment. Stripe hosts the entire checkout page.

Create a Checkout Session (Server)

app.post('/api/checkout', async (c) => {
  const { priceId, successUrl, cancelUrl } = await c.req.json();

  const session = await stripe.checkout.sessions.create({
    mode: 'payment',
    line_items: [{ price: priceId, quantity: 1 }],
    success_url: successUrl || `${new URL(c.req.url).origin}/success?session_id={CHECKOUT_SESSION_ID}`,
    cancel_url: cancelUrl || `${new URL(c.req.url).origin}/pricing`,
  });

  return c.json({ url: session.url });
});

Read the full file on GitHub · 341 lines

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. 1mo ago First seen · 341 lines · 101 tokens per session scan A 80760d8bd8a6

Subscribe to this mod's changes

stripe-payments is a skill published in the GitHub repository Ertinox7711/SGRR-AGI-V2 (1 stars, last pushed 1mo ago), licensed MIT. It adds 101 tokens to every session and 2,352 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to stripe-payments, differing in 0 lines, and is treated as a copy.