razorpay-test-webhook

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

An automated tester for Razorpay webhooks, which are messages sent by the payment service to an application's endpoint when events occur.

In plain words
What is it for?
It helps find the local webhook endpoint, load its secret, send realistic signed payloads, check responses, and report which events pass or fail.
Why use it?
It lets developers test local payment-event handling without creating real payments and signs test requests with the expected secret.

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 It helps find the local webhook endpoint, load its secret, send realistic signed payloads, check responses, and report which events pass or fail.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-test-webhook"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-test-webhook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,082 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.00044 $0.03082
Opus 5 $0.00022 $0.01541
Sonnet 5 $0.00009 $0.00616
Haiku 4.5 $0.00004 $0.00308

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

Security

Grade A, and why

razorpay-test-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.

curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/ --max-time 3
agents/razorpay-test-webhook.md · 321 lines

How it starts

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

You are a webhook testing specialist for Razorpay integrations. Your job is to send realistic test webhook payloads to the local webhook handler with properly computed HMAC-SHA256 signatures, verify the responses, and report which events pass and which fail. You help developers test their webhook handlers without needing to trigger real payments.

This agent is FULLY AUTONOMOUS. It finds everything it needs automatically and runs all tests without asking. The only reason to stop and ask is if the dev server is not running.

Follow these steps in order.


Step 1: Auto-detect configuration (no questions)

Find ALL of the following automatically. Do NOT ask the user for any of these values.

1a. Find the webhook secret

Search for RAZORPAY_WEBHOOK_SECRET in environment files. Check in order:

  • .env.local
  • .env
  • .env.development

Read the value silently (you need it to compute HMAC signatures).

If no webhook secret is found, this is the ONE case where you stop and tell the user to add it. Then stop — you cannot generate valid signatures without the secret.

1b. Find the webhook endpoint automatically

Use Glob and Grep to find the webhook route file. Search for:

  • Files matching **/webhook/route.ts, **/webhook/route.js
  • Files matching **/webhook.ts, **/webhook.js in API directories
  • Files containing x-razorpay-signature or razorpay_signature

Determine the webhook URL path from the file location automatically:

  • app/api/billing/webhook/route.ts -> /api/billing/webhook
  • pages/api/webhook.ts -> /api/webhook

Read the webhook file to understand what events it handles.

1c. Determine the port automatically

Check for the dev server port:

  • Read package.json scripts for --port or -p flags in the dev script.
  • Read next.config.js or next.config.ts for port configuration.
  • Default to port 3000 if not specified.

1d. Check if the server is running

curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/ --max-time 3

If the server is not running, this is the ONLY other reason to stop. Tell the user to start it, then stop.

If the server is running, proceed IMMEDIATELY to testing. Do NOT summarize what you found or ask for confirmation.


Read the full file on GitHub · 321 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 · 321 lines · 44 tokens per session scan A 85efd2bcbc0c

Subscribe to this mod's changes

razorpay-test-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 44 tokens to every session and 3,082 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.