razorpay-subscription

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

An agent that builds a recurring Razorpay subscription checkout flow, including subscription creation, customer checkout, billing-status checks, and payment-completion detection. Recurring billing charges customers repeatedly according to a plan.

In plain words
What is it for?
Use it to add subscription billing to a web app, create the billing API route, connect the checkout component, and show updated subscription status.
Why use it?
It handles common subscription details such as browser checkout fallbacks, duplicate pending subscriptions, and phone-number formatting that Razorpay may reject.

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 subscription billing to a web app, create the billing API route, connect the checkout component, and show updated subscription status.

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

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

agentmods 80×15 button for razorpay-subscription

Your own site · 80×15
<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>
Per session 49 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,384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00049 $0.03384
Opus 5.5 $0.00020 $0.01354
Sonnet 5.5 $0.00010 $0.00677
Haiku 4.5 $0.00005 $0.00338

Measured 1mo ago against content hash b5a9bc2a01ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

agents/razorpay-subscription.md · 349 lines

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 with layout.tsx or page.tsx files (App Router).
  • Look for pages/ directory with _app.tsx or index.tsx files (Pages Router).
  • Check next.config.js or next.config.ts for 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.ts and app/api/**/route.js
  • pages/api/**/*.ts and pages/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 instantiation
  • import Razorpay or require('razorpay') — the import
  • Files in lib/, utils/, services/ directories containing razorpay

Read the full file on GitHub · 349 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. 1mo ago First seen · 349 lines · 49 tokens per session scan A b5a9bc2a01ad

Subscribe to this mod's changes

razorpay-subscription is an agent published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 7mo ago), licensed MIT. It adds 49 tokens to every session and 3,384 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

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.

HermeticOrmus/LibreUIUX-Claude-Code · 43 tokens

payment-integration

Use PROACTIVELY when integrating payments or handling financial transactions — Stripe/gateway integration, PCI-safe tokenization, verified webhooks, and idempotent charge/refund flows (e.g. a cashflow or digital-goods shop). NEVER hardcodes keys.

ForgeyClap/claude-forge · 57 tokens

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.

ChrisRoyse/610ClaudeSubagents · 43 tokens

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.

mirinodev/claude-code · 43 tokens

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.

TheSethRose/Copilot-Skills · 47 tokens

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.

microsoft/playwright · 151 tokens