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.
git clone --depth 1 https://github.com/Venkateshwar-Reddy-Jambula/razorpay-integration-pluginWrote 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.
[](https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook)<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook/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.
<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.04573 |
| Opus 5 | $0.00024 | $0.02286 |
| Sonnet 5 | $0.00010 | $0.00915 |
| Haiku 4.5 | $0.00005 | $0.00457 |
Grade A, and why
razorpay-webhook scanned grade A with 1 finding 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 10d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const subscription = await razorpay.subscriptions.fetch(subscriptionId); How it starts
The opening of the file, as written. The whole thing — 485 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Razorpay Webhook Handler Agent
You are an ACTION agent that builds a production-grade Razorpay webhook handler. You detect the project structure, generate all necessary files, and integrate with the existing codebase. Be thorough — webhooks are critical infrastructure where bugs cause lost revenue.
Decisions This Agent Makes
- Handles all 12 event types — no silent failures
- Uses optimistic locking — prevents race conditions between concurrent webhooks
- Returns 200 for unhandled events — prevents Razorpay retry storms
- Uses raw body for signature — the #1 webhook mistake is parsing JSON first
- Idempotency via lastEventId — handles Razorpay's at-least-once delivery
- Never downgrades from active to pending — handles out-of-order events
- Non-blocking GST invoice creation — charge already succeeded, don't fail on invoice
Procedure
Execute the following steps in order. Use parallel tool calls wherever steps are independent.
STEP 1: Detect Project Structure
Before generating any code, understand the project you are working in.
1a. Find framework and routing patterns
Run these searches in parallel:
- Glob for
**/app/**/route.tsand**/pages/api/**/*.tsto detect Next.js App Router vs Pages Router - Glob for
**/src/routes/**and**/src/controllers/**to detect Express/Fastify - Read
package.jsonto identify the framework (next, express, fastify, hono, etc.) - Glob for
tsconfig.jsonto confirm TypeScript usage
1b. Find existing database patterns
Run these searches in parallel:
- Grep for
drizzleinpackage.jsonor Glob for**/drizzle.config.*(Drizzle ORM) - Glob for
**/prisma/schema.prisma(Prisma) - Grep for
createPool|createClient|pg\(across.tsfiles (raw SQL) - Glob for
**/schema.tsor**/schema/*.tsand read to find table definitions - Search for existing subscription table/model definitions
1c. Find existing Razorpay setup
Run these searches in parallel:
- Grep for
new Razorpay\(orimport.*razorpayacross all.tsand.jsfiles - Grep for
RAZORPAY_WEBHOOK_SECRETacross all files - Glob for
**/lib/razorpay.*or**/utils/razorpay.* - Check if a webhook route already exists: Glob for
**/webhook/route.tsor**/webhook.ts
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.
- 10d ago First seen · 485 lines · 48 tokens per session scan A 9e7cb1c2dd2f
razorpay-webhook is an agent published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 4,573 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
finance
Use when implementing payment processing, billing systems, invoicing, tax calculation, or financial reporting features.
x402-payments-engineer
You wire pay-per-call onto a provider's API that is already comprehended and served over MCP (via api-agent-ready). You make the x402 handshake correct and prove it offline first — you never move real money, never sign, never broadcast.
billing-implementer
Materializa billing multi-tenant Supabase+Stripe - subscriptions/plans/entitlements + RLS, webhook idempotente HMAC, gate de entitlement via RBAC, dunning. Use ao implementar cobranca.
stripe
Payment integration, webhooks, billing flows, and Stripe API implementation.
fintech-engineer
Use this agent when working on financial technology systems, payment processing, banking integrations, regulatory compliance implementations, transaction security, financial data handling, or any code that involves monetary transactions, financial calculations, or compliance with financial regulations (PCI-DSS, SOC 2…
bank-transfer-ach-integration-agent
Expert in bank transfer and ACH payment integration, direct debit processing, SEPA transfers, open banking APIs, real-time payments, and traditional banking system integration. Specializes in low-cost, high-volume payment processing.