Elestia Open Source Ratings
5.7

Braintree SDK

Reasonable, with limits. 8th of 10 payment SDKs.

The braintree package is PayPal's official server-side Node.js library for the Braintree gateway. It covers the whole gateway API: transactions, the vault, subscriptions, webhooks and disputes. It is a sound pick if you already use Braintree as your processor. As a general choice for a new project it falls behind Stripe: it has no bundled TypeScript types, its design is dated, and its share of new projects is falling.

Best for: Teams that already process payments through Braintree or need PayPal and Venmo through an enterprise gateway, with a Node.js backend.

WebsiteGitHubnpm

Scores

Overall5.7

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

It is the right and only official choice once a team has picked Braintree, and it is maintained and stable. For a new project choosing a payment SDK, Stripe gives a typed, faster-moving SDK with far more adoption. The lack of types and the falling share keep this one in the middle of the category.

GPT-6.2 Sol: 6.4, likely 5.3 to 7.5

Braintree is a reasonable new-project choice when the gateway is already selected and plan-based recurring billing is enough. Stripe is the stronger general default because it ships first-party TypeScript declarations, supports metered billing, and shows much stronger maintenance and adoption in the bundle. The recommendation gets stronger when Braintree’s payment methods matter to the project, while the slow relative growth and thin SDK-specific production evidence limit confidence.

Needed by many3.8

How many developers need a tool for this job?

Claude Opus 5.5: 3.5, likely 2.5 to 4.5

Many apps take payments, but this SDK only helps teams that use Braintree as their processor. That is a clear group of merchants, mostly enterprise and PayPal-centric, and it is much smaller than Stripe's. It also runs only on Node servers.

GPT-6.2 Sol: 4.1, likely 2.9 to 5.5

Payments and subscriptions are common needs in commerce and paid SaaS. This package serves Node.js backends that use the Braintree gateway and qualify for a merchant account. Developer surveys establish that Node.js is widely used, but the share of those developers who need this specific gateway is harder to estimate.

Helps a lot6.1

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 Braintree gateway API completely and is kept current with new payment methods and fields. But it ships no types, its style is old CommonJS with callbacks or promises, and TypeScript users depend on community definitions that can lag behind. Stripe's SDK is typed, better documented and easier for AI agents to write correct code for.

GPT-6.2 Sol: 6.7, likely 5.6 to 7.9

Version 3.41.0 covers routine payment operations and adds a single call to void or fully refund a transaction. The sandbox guides are practical, and built-in subscriptions bill in monthly increments. Community types help, but the lack of bundled declarations makes API changes harder to check for both developers and coding agents. Comparative SDK performance and agent-coding data are sparse.

Holds up over time6.1

Will it still be a good choice in two years?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

PayPal funds the SDK, and it still gets a release every few months (7 versions last year, the latest in October 2026). Braintree remains PayPal's enterprise processing business, now under the PayPal Open brand. Against that, there are only 7 public commits a year, issues stay open for years, and the brand consolidation adds some uncertainty about the long-term SDK.

GPT-6.2 Sol: 6.2, likely 4.9 to 7.5

PayPal still lists the 3.x line as active, and npm recorded seven updates in the past year. The repository had seven commits in that span, far fewer than Stripe or Adyen. Maintainers published a same-day fix for an accidental dependency, while the request for native TypeScript support has remained open since 2020. The active support policy gives some confidence, but the roadmap and depth of the release team are unclear.

Used widely4.2

How many use it, and is that growing?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

About 1M downloads a month and 1,466 dependent repositories. That is the second-largest dependent count after Stripe and Razorpay, which reflects a long install base. But the 1.63x yearly ratio is far below the 4.1 median and below every peer, so its share of new projects is shrinking.

  • npm downloadsLast4Weeks: 1,015,990, up from 623,593 a year ago (1.63x)
  • medianDownloadsRatio: Median is 4.1x, so braintree is losing ground
  • dependents repos: 1,466 repos and 61 packages
  • github stars: 334 stars

GPT-6.2 Sol: 3.9, likely 2.8 to 5.3

Ecosyste.ms found 1,466 repositories and 61 npm packages depending on Braintree. Its repository count exceeds the recorded counts for Square and Adyen, with Stripe far ahead. Four-week installs rose from 624,000 to 1.02 million, but the 1.63× ratio trails the 4.1× catalog median and every listed peer. Partial dependency coverage and repeat installs make the rate of new adoption hard to pin down.

  • dependents repos, dependents packages: 1,466 indexed GitHub repositories and 61 indexed npm packages.
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs increased 1.63× against the 4.1× catalog median.
  • peers: Stripe has 46,266 indexed repositories, Adyen 166, and Square 114.
  • github stars, hackerNews stories, bluesky posts: 334 stars and no matched social posts or stories in the collector’s sample.
Vouched for5.3

Who stands behind it being good?

Claude Opus 5.5: 5.0, likely 4.0 to 6.5

PayPal backs it, and large merchants run Braintree in production through this SDK. Independent comparisons, however, rate Braintree's developer experience below Stripe's, and some call it an afterthought inside PayPal. There is no survey or community praise for the SDK itself: no Hacker News stories and no Bluesky posts.

GPT-6.2 Sol: 5.5, likely 4.1 to 6.9

PayPal maintains the SDK, and Medusa lists a third-party Braintree integration for payments and 3D Secure. A developer reports using Braintree to bring subscription cancellation into a Next.js app. PayPal’s Wellful case study supports production use of the gateway. Independent evidence on large-scale use and developer satisfaction with this specific Node.js package is sparse.

Safe6.4

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It has no OSV advisories, three dependencies and an MIT licence, and version 3.40.0 fixed path traversal problems in the SDK itself. The OpenSSF Scorecard is weak at 3.6, with no branch protection, no code review, no pinned dependencies and no SAST. An issue about a wrong dependency added in 3.33.0 and an old security-contact issue are still open.

GPT-6.2 Sol: 6.2, likely 4.8 to 7.6

The MIT package has three direct dependencies and a documented vulnerability reporting process. OSV lists zero advisories, but the changelog records path traversal fixes in 3.38.0 and 3.40.0. Maintainers also patched an accidental dependency addition on the day it was reported. The 3.6 OpenSSF Scorecard, with zero scores for code review, branch protection, and token permissions, and limited visibility into npm publishing controls keep confidence moderate.

Good

  • It is the official SDK and still gets gateway features, such as Transaction.reverse() and idempotency keys in recent 3.x releases.
  • It has only three runtime dependencies, an MIT licence and no published advisories.
  • The 3.x API has stayed stable for years, so upgrades rarely break code.
  • One library covers cards, PayPal, Venmo, Apple Pay, local payment methods and subscriptions.

Bad

  • It ships no TypeScript types: you need the community @types/braintree, and the issue asking for better TypeScript support has been open since 2020.
  • Development is internal and opaque: 7 commits in a year, no GitHub releases, and few community pull requests merged.
  • Downloads grew 1.6x in a year against a 4.1x median, and most peers grew faster.
  • It is server-only and Braintree-only. Its subscription support is basic next to Stripe Billing or merchant-of-record tools such as Paddle.

The numbers

npm downloads, 4 weeks
1M +63% in a year
GitHub stars
334
Commits, 12 months
7
npm version
3.41.0 Oct 2026
Versions, 12 months
7
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.6 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (braintree/braintree_node), npm (braintree), OSV and the OpenSSF Scorecard.

Payment SDKs

  1. 9.1Stripe SDK
  2. 7.4Paddle SDK
  3. 7.1Adyen API library
  4. 7.1Polar SDK
  5. 6.7Square SDK
  6. 6.6Razorpay SDK
  7. 6.1PayPal Server SDK
  8. 5.7Braintree SDK
  9. 3.4Mollie API client
  10. 0.6Lemon Squeezy SDK
Compare all 10 on six scores