Razorpay SDK
Reasonable, with limits. 6th of 10 payment SDKs.
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
Overall6.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.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.
- peers Stripe SDK: Stripe has 187 commits a year and 46k dependents.
- analyticsinsight.net/fintech/top-5-payment-gateways-for-indian-startups-for-2027-pricing-features-and-which-one-wins: Razorpay is the India-first gateway choice.
- github.com/razorpay/razorpay-node/issues: A backlog of unanswered issues.
GPT-6.2 Sol: 7.1, likely 5.9 to 8.2
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.
- razorpay.com/docs/payments/subscriptions: Documents recurring billing and UPI AutoPay support.
- razorpay.com/docs/payments/subscriptions/faqs: Documents limits on plan changes for non-card subscriptions.
- support.stripe.com/questions/india-faq?locale=en-GB: Stripe confirms invite-only onboarding in India.
- npm versionsLastYear and peers Stripe SDK: One Razorpay npm release in the past year, with much higher commit activity for Stripe.
- github.com/razorpay/razorpay-node/issues/462: Webhook signature timing report remains open.
Needed by many3.9
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- analyticsinsight.net/fintech/top-5-payment-gateways-for-indian-startups-for-2027-pricing-features-and-which-one-wins: Razorpay is positioned for Indian startups; Stripe for cross-border revenue.
- echai.ventures/explore/compare/stripe-vs-razorpay: Razorpay is mainly India-focused, with limited international coverage.
GPT-6.2 Sol: 4.2, likely 3.1 to 5.3
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.
- survey.stackoverflow.co/2025/technology: Developer survey includes Node.js usage.
- web-assets.bcg.com/73/e5/e11f0db54da18a31a7cb55c1bef2/upi-the-global-benchmark-for-digital-payments.pdf: BCG and NPCI survey documents demand for UPI among Indian merchants.
- razorpay.com/docs/payments/server-integration/nodejs: Official integration guide targets Node.js servers.
Helps a lot6.5
How well does it do the job for those who need it?
Claude Opus 5.5: 5.5, likely 4.5 to 6.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.
- github.com/razorpay/razorpay-node/releases: Types were added in v2.8.6; recent releases add endpoints and OAuth.
- github.com/razorpay/razorpay-node/issues: Open reports of wrong typings, ignored filters and subscription gaps.
- npm hasTypes: The package includes TypeScript types.
GPT-6.2 Sol: 7.4, likely 6.3 to 8.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.
- github.com/razorpay/razorpay-node: Documents SDK resources and integration examples.
- reddit.com/r/indiandevs/comments/1wutj3m/best_payment_gateway_for_developer_support_in: Firsthand Node.js comparison reports quick setup and unclear test-mode errors.
- raw.githubusercontent.com/razorpay/razorpay-node/v2.9.8/lib/types/customers.d.ts: Current declaration excludes string values for fail_existing.
- razorpay.com/docs/api/customers/create: Customer creation reference shows fail_existing as a string.
- razorpay.com/docs/payments/subscriptions/faqs: Live plan updates are limited to card-authorized subscriptions.
Holds up over time5.7
Will it still be a good choice in two years?
Claude Opus 5.5: 5.5, likely 4.5 to 7.0
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.
- github commitsLastYear: 12 commits, 2 releases in the last year.
- github openPullRequests: 67 open PRs against 151 merged.
- github.com/razorpay/razorpay-node/issues: Many issues from 2025–2026 have no comments.
GPT-6.2 Sol: 5.9, likely 4.6 to 7.2
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.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests: 12 commits, two GitHub releases, 73 open issues, and 67 open pull requests.
- npm versionsLastYear: One version reached npm in the past year.
- peers Stripe SDK and Adyen API library: Stripe had 187 commits and Adyen had 315.
- github.com/razorpay/razorpay-node/releases/tag/v2.9.8: July release updated Axios for security fixes and migrated to Babel 7.
- github.com/razorpay/razorpay-node/issues/463: January report about customer types remains open.
Used widely4.8
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- npm downloadsLast4Weeks: 1.69M, against 452k a year ago (ratio 3.7, below the 4.1 median).
- dependents repos: 2,636 repos, second only to Stripe among peers.
- github stars: 243 stars, which is modest.
GPT-6.2 Sol: 4.6, likely 3.4 to 5.9
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.74× year-over-year download growth against a 4.1× baseline.
- dependents repos and packages: ecosyste.ms found 2,636 repositories and 69 packages.
- peers dependentRepos: Stripe has 46,266 indexed repositories and Braintree has 1,466.
Vouched for5.1
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
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.
- dev.to/buildbyravirai/razorpay-webhooks-done-right-2026-signature-verification-idempotency-and-reconciliation-a9m: A third-party guide builds on the SDK's signature helper.
- hookdeck.com/webhooks/platforms/guide-to-razorpay-webhooks-features-and-best-practices: An independent guide to Razorpay webhooks.
- hackerNews stories: Almost no HN or Bluesky attention.
GPT-6.2 Sol: 5.2, likely 3.9 to 6.5
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.
- mith.tech/blog/medusa-razorpay-india-store: Commerce integrator documents a Medusa v2 provider using the SDK.
- reddit.com/r/indiandevs/comments/1wutj3m/best_payment_gateway_for_developer_support_in: Developer reports firsthand results across four Indian gateways.
- chargebee.com/docs/payments/2.0/payment-gateways-and-configuration/razorpay: Chargebee offers Razorpay as a supported payment gateway.
Safe6.2
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.0 to 7.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.
- advisories total: No known advisories.
- npm dependencies: A single runtime dependency.
- github.com/razorpay/razorpay-node/issues: Timing-attack issues #479 and #462 are open.
- github.com/razorpay/razorpay-node/releases: SSRF fix in 2.9.4; axios bump in 2.9.8.
GPT-6.2 Sol: 5.8, likely 4.4 to 7.2
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.
- advisories total and scorecard: Zero direct advisories in OSV and no Scorecard result.
- raw.githubusercontent.com/razorpay/razorpay-node/v2.9.8/package.json: MIT license and one direct dependency, Axios ^1.18.1.
- github.com/axios/axios/issues/10636?timeline_page=2: Axios postmortem identifies the compromised March releases.
- github.com/axios/axios/security/advisories/GHSA-x97p-jq2g-jp4f: September advisory lists Axios 1.20.0 as the patched 1.x version.
- github.com/razorpay/razorpay-node/issues/462: Open report flags a possible webhook signature timing issue.
- raw.githubusercontent.com/razorpay/razorpay-node/v2.9.8/lib/utils/razorpay-utils.js: Released source still contains the reported comparison.
- github.com/razorpay/razorpay-node#release: Repository documents publishing manually with npm publish.
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
- npm downloads, 4 weeks
- 1.7M ×3.7 in a year
- GitHub stars
- 243
- Commits, 12 months
- 12
- npm version
- 2.9.8 Jul 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (razorpay/razorpay-node), npm (razorpay), OSV and the OpenSSF Scorecard.
Payment SDKs
- 9.1Stripe SDK
- 7.4Paddle SDK
- 7.1Adyen API library
- 7.1Polar SDK
- 6.7Square SDK
- 6.6Razorpay SDK
- 6.1PayPal Server SDK
- 5.7Braintree SDK
- 3.4Mollie API client
- 0.6Lemon Squeezy SDK