razorpay-webhook

razorpay-webhook is an agent for Claude Code from Venkateshwar-Reddy-Jambula/razorpay-integration-plugin. It costs 48 tokens per session (4,573 once invoked), scanned A, original, MIT.

An agent that builds a Razorpay webhook handler, meaning server code that receives payment-service event notifications. It includes signature checking, duplicate-event protection, and handlers for many Razorpay event types.

In plain words
What is it for?
Use it to add production webhook processing for payment and subscription events, verify raw request signatures, prevent duplicate updates, and guard against conflicting state changes.
Why use it?
It addresses lost or repeated event processing and protects account state when notifications arrive more than once or out of order.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the razorpay plugin — 15 skills, 9 agents, 1 hook shipped together

Good fit Use it to add production webhook processing for payment and subscription events, verify raw request signatures, prevent duplicate updates, and guard against conflicting state changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook
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.

Clone the repo
git clone --depth 1 https://github.com/Venkateshwar-Reddy-Jambula/razorpay-integration-plugin

Made for: Claude Code.

Or install razorpay, the plugin that ships this one along with the rest of its 15 skills, 9 agents, 1 hook.

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 razorpay-webhook

README.md
[![agentmods](https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook/github.svg)](https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-webhook)
Your own site
<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.

agentmods 80×15 button for razorpay-webhook

Your own site · 80×15
<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>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00048 $0.04573
Opus 5 $0.00024 $0.02286
Sonnet 5 $0.00010 $0.00915
Haiku 4.5 $0.00005 $0.00457

Measured 10d ago against content hash 9e7cb1c2dd2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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);
agents/razorpay-webhook.md · 485 lines

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.ts and **/pages/api/**/*.ts to detect Next.js App Router vs Pages Router
  • Glob for **/src/routes/** and **/src/controllers/** to detect Express/Fastify
  • Read package.json to identify the framework (next, express, fastify, hono, etc.)
  • Glob for tsconfig.json to confirm TypeScript usage

1b. Find existing database patterns

Run these searches in parallel:

  • Grep for drizzle in package.json or Glob for **/drizzle.config.* (Drizzle ORM)
  • Glob for **/prisma/schema.prisma (Prisma)
  • Grep for createPool|createClient|pg\( across .ts files (raw SQL)
  • Glob for **/schema.ts or **/schema/*.ts and 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\( or import.*razorpay across all .ts and .js files
  • Grep for RAZORPAY_WEBHOOK_SECRET across all files
  • Glob for **/lib/razorpay.* or **/utils/razorpay.*
  • Check if a webhook route already exists: Glob for **/webhook/route.ts or **/webhook.ts

Read the full file on GitHub · 485 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. 10d ago First seen · 485 lines · 48 tokens per session scan A 9e7cb1c2dd2f

Subscribe to this mod's changes

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.

Related

Other agents, from other repositories

finance

Use when implementing payment processing, billing systems, invoicing, tax calculation, or financial reporting features.

herbert-julio-azion/specialist-agent · 22 tokens

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.

GeckoVision/gecko-surf · 133 tokens

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.

luanpdd/kit-mcp · 49 tokens

stripe

Payment integration, webhooks, billing flows, and Stripe API implementation.

kinncj/Heimdall · 16 tokens

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…

SoundDocs/sounddocs · 0 tokens

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.

ChrisRoyse/610ClaudeSubagents · 49 tokens