# Razorpay SDK: 6.6 out of 10

Reasonable, with limits. 6th of 10 in [Payment SDKs](https://elestia.ai/opensource/payments/index.md).

Razorpay's official Node.js server SDK. It is a thin, MIT-licensed client for the Razorpay payments, subscriptions and payouts APIs, with bundled TypeScript types. If you sell mainly in India, it is the practical default. Expect slow maintenance, a backlog of unanswered issues and typings that sometimes lag the API.

**Best for:** Teams that take payments or run subscriptions mainly from Indian customers, with UPI, cards and netbanking, on a Node backend.

## Scores

- **Overall: 6.6** (likely 5.5 to 7.6)
  - Claude Opus 5.5 (6.0): If you need Razorpay, which is common for Indian merchants and UPI, this official SDK is the one to use, and it does the job. Its slow maintenance, unanswered issues and uneven typings put it well behind Stripe in quality. Outside India, a peer like Stripe or Adyen fits most projects better.
  - GPT-6.2 Sol (7.1): Razorpay is a strong pick for new Node.js projects that need Indian payment methods, especially UPI AutoPay. Stripe is the stronger general-purpose pick where merchant onboarding and local payment methods fit, while new Stripe accounts in India remain invite-only. Slow SDK releases, restrictions on subscription changes, and the unresolved webhook verification report limit confidence in the recommendation.
- **Needed by many: 3.9** (likely 2.8 to 4.9)
  - Claude Opus 5.5 (3.5): Payment SDKs matter to a large share of app builders, but this one serves merchants who use Razorpay, which mostly means businesses selling in India. That is a big market, but it is a regional niche within the category. It only covers the Node server side.
  - GPT-6.2 Sol (4.2): Checkout and subscriptions matter to commerce and SaaS teams. This SDK serves Node.js backends using Razorpay and has its clearest fit with Indian payments. Developer and merchant surveys show demand for Node.js and UPI, but neither measures how many JavaScript projects need both.
- **Helps a lot: 6.5** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (5.5): It covers the Razorpay API broadly, has bundled types, and has a signature helper. It is a hand-written JS wrapper, though, and its typings sometimes lag or disagree with the API. Several open issues report ignored parameters and subscription gaps. It works, but it is clearly less polished than Stripe's generated, fully typed SDK.
  - GPT-6.2 Sol (7.4): Version 2.9.8 covers common payment and subscription flows, and its examples give developers and coding agents a starting point. A developer comparing four Indian gateways reported a quick first payment with Razorpay and gaps in diagnosing test-mode errors. The customer creation types disagree with a documented request value, and UPI and bank-mandate subscriptions have limits on live plan changes. Comparative performance and coding-agent accuracy remain unmeasured in this review.
- **Holds up over time: 5.7** (likely 4.6 to 7.1)
  - Claude Opus 5.5 (5.5): Razorpay is a large, funded company, and its business depends on this SDK, so abandonment is unlikely. But activity is thin: 12 commits and 2 releases in the year, a large backlog of unreviewed issues and pull requests, and security reports with no reply. Breaking changes have been rare.
  - GPT-6.2 Sol (5.9): Razorpay maintains the official client, and the July patch updated Axios and the build tools. The past year brought 12 commits and one npm release, well behind Stripe and Adyen in commit activity. Long-open reports and limited visibility into who can publish make the pace of future fixes uncertain.
- **Used widely: 4.8** (likely 3.7 to 6.0)
  - Claude Opus 5.5 (5.0): About 1.7M downloads in 4 weeks and 2,636 dependent repos. That is the second-highest dependent count in the category, far behind Stripe's 46k but ahead of Braintree and the rest. Downloads grew 3.7x in a year, slightly below the 4.1 median, so its share is roughly flat to slightly falling.
  - GPT-6.2 Sol (4.6): Four-week downloads rose from 452,380 to 1.69 million, but the 3.74× ratio trails the catalog median of 4.1×. The index found 2,636 dependent repositories, ahead of Square, Adyen, and Braintree and well behind Stripe. The index covers only part of GitHub, and repeat installs make downloads a noisy measure of how many teams choose the SDK.
- **Vouched for: 5.1** (likely 4.0 to 6.5)
  - Claude Opus 5.5 (5.0): Razorpay is one of India's main payment processors, and this official SDK is what its docs and third-party guides tell you to use. Independent developer write-ups and surveys about the SDK itself are scarce. Comparisons judge the gateway, not the library.
  - GPT-6.2 Sol (5.2): A commerce integrator documents a Medusa v2 implementation using the Node SDK, and a developer comparing Indian gateways reports favorable setup time. Chargebee supports Razorpay as a gateway, which backs the payment service itself. Independent benchmarks, SDK satisfaction data, and named large deployments of this npm package were scarce in the sources reviewed.
- **Safe: 6.2** (likely 4.7 to 7.4)
  - Claude Opus 5.5 (6.5): It has no OSV advisories, an MIT licence and one dependency (axios), which was bumped for security fixes in July 2026. An SSRF issue was fixed in v2.9.4. Two reports of a timing-attack risk in webhook signature comparison remain open with no reply, and there is no Scorecard data.
  - GPT-6.2 Sol (5.8): The SDK uses the MIT license, has one direct runtime dependency, and has zero direct advisories in the supplied OSV data. Version 2.9.8 raised the Axios minimum beyond the versions involved in the March supply-chain incident, but its range still permits older Axios versions covered by later advisories. The released webhook helper still uses the signature comparison flagged in an open timing report, whose practical impact remains unverified. The repository documents manual npm publishing, and release provenance, publisher access, and Scorecard checks remain unverified.

## Good

- It is the official client for India's leading payment gateway and covers orders, payments, refunds, subscriptions, payment links, invoices and OAuth.
- It has a single runtime dependency (axios) and an MIT licence.
- TypeScript definitions ship in the package and cover all modules.
- It has a built-in webhook and payment signature helper (validateWebhookSignature).

## Bad

- Maintenance is slow: 12 commits and 2 releases in the last year, with 73 open issues and 67 open pull requests.
- Many issues have no reply, including reports of a timing-attack risk in webhook signature checks and incorrect typings.
- It is useful almost only for India-focused merchants, and international coverage is limited compared with Stripe.
- Subscription features have gaps that users report, such as plan switching, update/delete and cancel_at_cycle_end behaviour.

## The numbers

- Downloads, 4 weeks: 1.7M
- In a year: ×3.7
- GitHub stars: 243
- Commits, 12 months: 12
- Last npm release: Jul 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/razorpay/razorpay-node
- npm: https://www.npmjs.com/package/razorpay

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
