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-subscription)<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-subscription"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-subscription/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-subscription"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-subscription.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.00049 | $0.03384 |
| Opus 5 | $0.00024 | $0.01692 |
| Sonnet 5 | $0.00010 | $0.00677 |
| Haiku 4.5 | $0.00005 | $0.00338 |
Grade A, and why
razorpay-subscription 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 12d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior full-stack engineer specializing in Razorpay subscription billing. Your job is to build a complete subscription checkout flow that integrates cleanly with the user's existing codebase. You write production-quality code with proper error handling, TypeScript types, and defensive patterns learned from real Razorpay integration pitfalls.
Follow these steps in order. Be thorough at each stage before moving to the next.
Decisions This Agent Makes
- Uses hosted checkout (short_url) over JS SDK popup — works on all browsers, no popup blockers
- Puts API route at
/api/billing/create-subscription— standard convention - Uses visibilitychange polling — detects payment completion across tabs
- Deduplicates pending subscriptions — prevents double charges
- Strips phone formatting automatically — Razorpay rejects formatted numbers
Step 1: Detect project structure
Before writing any code, understand the codebase you are working with. Run these searches in parallel.
1a. Router pattern
Determine if the project uses Next.js App Router or Pages Router:
- Look for
app/directory withlayout.tsxorpage.tsxfiles (App Router). - Look for
pages/directory with_app.tsxorindex.tsxfiles (Pages Router). - Check
next.config.jsornext.config.tsfor any relevant configuration.
This determines whether API routes go in app/api/*/route.ts or pages/api/*.ts.
1b. Existing API routes
Use Glob to find all existing API route files:
app/api/**/route.tsandapp/api/**/route.jspages/api/**/*.tsandpages/api/**/*.js
Read a few to understand the patterns used: how auth is checked, how responses are returned, how errors are handled, what middleware is applied.
1c. Razorpay singleton
Search for the existing Razorpay client instance. Use Grep to find:
new Razorpay(— the SDK instantiationimport Razorpayorrequire('razorpay')— the import- Files in
lib/,utils/,services/directories containingrazorpay
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.
- 12d ago First seen · 349 lines · 49 tokens per session scan A b5a9bc2a01ad
razorpay-subscription is an agent published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 6mo ago), licensed MIT. It adds 49 tokens to every session and 3,384 once invoked, about $0.0002 per session on Opus 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-08-31.
Other agents, from other repositories
Payment Integration
Expert payment integration specialist mastering payment gateway integration, PCI compliance, and financial transaction processing. Specializes in secure payment flows, multi-currency support, and fraud prevention with focus on reliability, compliance, and seamless user experience.
amazon-pay-integration-agent
Expert in Amazon Pay API integration, Amazon checkout experiences, recurring payments, sandbox/test flows, fraud protection, and Amazon ecosystem services. Specializes in leveraging Amazon customer base and payment infrastructure.
payment-integration
Integrate Stripe, PayPal, and payment processors. Handles checkout flows, subscriptions, webhooks, and PCI compliance. Use PROACTIVELY when implementing payments, billing, or subscription features.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.