paymentsim
Skill by langwatch
Runs billing tests against paymentsim, a local Stripe stand-in for haven. It covers checkout, subscriptions, invoices, signed webhooks and exact metered-usage totals. It is for developers who test billing without a Stripe account.
Install paymentsim
Built from the published package, never by AI.
git clone --depth 1 https://github.com/langwatch/langwatch /tmp/langwatch && mkdir -p ~/.claude/skills && cp -r /tmp/langwatch/.claude/skills/paymentsim ~/.claude/skills/paymentsimRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/langwatch/langwatch /tmp/langwatch && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/langwatch/.claude/skills/paymentsim ~/.gemini/antigravity-cli/skills/paymentsimAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
paymentsim is a skill for running billing against paymentsim, haven's Stripe stand-in. It fakes the Stripe surface that enterprise/modules/billing calls, using Stripe's wire shapes. It signs webhooks with Stripe-Signature so billing's real constructEvent verifies them. It covers checkout, subscriptions, invoices, the test clock, payment failures and exact metered-usage totals.
Every haven up run starts paymentsim, so local and CI stacks need no Stripe account. A control API under /_sim/api and the haven sim payment CLI let you advance the clock, decline charges, replay or reorder events and read usage totals. State is in memory, so a restart clears it. It suits developers who want to test billing code locally.
Written from the project's SKILL.md and checked against it.
What it can do
- Checkout and subscriptionsFakes Stripe checkout sessions, customers and subscriptions in Stripe's wire shapes.
- Signed webhooksSends Stripe-Signature signed events that billing's constructEvent verifies.
- Test clockAdvances billing time with clock/advance or haven sim payment advance.
- Payment failuresDeclines the next charges for a chosen customer.
- Event replayDelivers events in chosen order, duplicated, or with a bad signature.
- InvoicesCreates, finalizes, pays, retries and previews invoices.
- Metered usage totalsReturns exact metered-usage totals per customer and event name.
- Licence purchase flowCompletes checkout sessions that carry a payment link, with a named buyer.
What you need
- haven local stack (haven up)
- make, to run the service without haven
- Stripe test keys in .env, optional if you want real Stripe
Try asking
- Advance the test clock by 30 days in paymentsim and show the invoices.
- Fail the next payment for cus_sim000001 in paymentsim.
- Replay a Stripe webhook event twice with paymentsim and check the handler.
Good to know
- State is in memory, so a restart forgets it.
- No automatic webhook retries.
- Credit grants are recorded but never applied.
- Not Stripe: unknown request parameters are accepted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/paymentsim/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to paymentsim
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
paymentsim: common questions
Do I need a Stripe account to test billing with paymentsim?
No. Every haven up run includes paymentsim, so local and CI stacks need no Stripe account. If you set your own Stripe test keys in .env, those are used instead.
How does paymentsim make webhooks verifiable?
It signs webhooks with Stripe-Signature using the format t=<unix>,v1=<hmac>. This lets billing's real constructEvent verify them.
What does paymentsim not support?
Proration is only fully handled for always_invoice, and other behaviours preview whole periods. Credit grants are recorded but never applied, and it does not retry webhooks automatically.
How do I install paymentsim?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is paymentsim free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is paymentsim safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to paymentsim?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
