paymentsim

paymentsim is a skill for Claude Code from langwatch/langwatch. It costs 110 tokens per session (1,479 once invoked), scanned A, original, Apache-2.0.

A local simulator for Stripe, the payment service used for checkout, subscriptions, invoices, and webhooks. It keeps billing state in memory and can imitate payment failures and clock changes.

In plain words
What is it for?
Use it to test checkout, subscription and invoice flows, signed webhook handling, payment failures, and metered-usage totals.
Why use it?
It lets local development and automated tests exercise billing without a Stripe account or real payment requests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to test checkout, subscription and invoice flows, signed webhook handling, payment failures, and metered-usage totals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langwatch/langwatch/paymentsim
About the project

LangWatch is a platform for testing, evaluating, and monitoring LLM-powered agents before release and in production. Teams use it to run agent simulations, trace and evaluate behavior, improve prompts and models, review failures, and manage provider costs and governance.

langwatch/langwatch · 5,059 stars · on GitHub · langwatch.ai

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 langwatch/langwatch --skill paymentsim
Clone the repo
git clone --depth 1 https://github.com/langwatch/langwatch

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 paymentsim

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/langwatch/langwatch/paymentsim"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/paymentsim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,479 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 original No closer match found 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.00110 $0.01479
Opus 5.5 $0.00044 $0.00592
Sonnet 5.5 $0.00022 $0.00296
Haiku 4.5 $0.00011 $0.00148

Measured yesterday against content hash fe7b852cb55b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

paymentsim 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 yesterday.

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.

.claude/skills/paymentsim/SKILL.md · 82 lines

How it starts

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

paymentsim

Fakes exactly the Stripe surface enterprise/modules/billing calls, in Stripe's wire shapes (form bodies, list/search/error envelopes, Idempotency-Key replay), and signs webhooks with Stripe-Signature: t=<unix>,v1=<hmac> so billing's real constructEvent verifies them. Ids are counters (cus_sim000001); catalog prices keep their real ids. Code: services/sims/paymentsim; spec: specs/setup/payment-simulator.feature. State is in memory: a restart forgets it.

Run it

  • Every haven up runs it; local and CI stacks need no Stripe account. When .env and the shell name none of STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, STRIPE_API_BASE, the app gets STRIPE_API_BASE=https://payment.<slug>.langwatch.localhost, STRIPE_SECRET_KEY=sk_test_paymentsim, STRIPE_WEBHOOK_SECRET=whsec_paymentsim. Set your own Stripe test keys in .env and those are used as they are. haven up prints which: Stripe: paymentsim or Stripe: your key from .env.
  • A key kept only in 1Password loses: haven sees no key, injects paymentsim's, and env answers first.
  • haven up -payment drops the lane (sticky). Restart the API (haven down + up) after toggling.
  • Without haven: make service svc=paymentsim with PAYMENTSIM_ADDR (default :5599), PAYMENTSIM_WEBHOOK_URL, PAYMENTSIM_WEBHOOK_SECRET, PAYMENTSIM_CATALOG, PAYMENTSIM_PUBLIC_URL.

Stripe surface

customers create/retrieve/del · prices list (expand[]=data.product) · subscriptions create/retrieve/update/cancel (update and retrieve take expand[]=latest_invoice; update takes payment_behavior=pending_if_incomplete: a failed proration charge keeps the items, holds pending_update for 23 h and leaves the invoice open; paying it applies the update once, expiry voids it) · hosted invoice page at hosted_invoice_url (/invoice/<id>, a Pay button) · checkout sessions create + line_items, list (customer, status, subscription) and expire · refunds create (payment_intent or charge, optional amount; a paid invoice carries payment_intent pi_<invoice>, its charge is ch_<invoice>) · billing portal sessions · invoices create/list/search/retrieve/finalize/pay/create_preview · invoiceitems create · billing meter_events create, meters list, event_summaries (minute-aligned) · billing credit_grants create. Anything else answers Stripe's 404 "Unrecognized request URL".

Read the full file on GitHub · 82 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. yesterday Changed · +10 lines fe7b852cb55b
  2. 1mo ago First seen · 72 lines · 110 tokens per session scan A 23a745929848

Subscribe to this mod's changes

paymentsim is a skill published in the GitHub repository langwatch/langwatch (5,059 stars, last pushed today), licensed Apache-2.0. It adds 110 tokens to every session and 1,479 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

paymentsim compared with skills from other repositories

paymentsim next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
paymentsimlangwatch/langwatchSkill5.1ktodayApache-2.0A110Claude Code
portfoliosuyoumo/ClawProBenchSkill8293mo agoApache-2.0A69Claude Code, Codex
trader-setupsuyoumo/ClawProBenchSkill8293mo agoApache-2.0A45Claude Code, Codex
ai-engineering-toolkitsinhoneyy/master-skillsSkill193d agononeA47Claude Code
ai-engineering-toolkitiradoweck/antigravity-awesome-skillsSkill313d agoMITA47Claude Code
ai-engineering-toolkitDorianGallo/antigravity-awesome-skills-localSkill2todayMITA47Claude Code
ai-engineering-toolkitmarysatasselshaped667/skills-collection-1Skill11mo agoMITA47Claude Code, Codex