# Braintree SDK: 5.7 out of 10

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

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.

## Scores

- **Overall: 5.7** (likely 4.7 to 6.8)
  - Claude Opus 5.5 (5.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): 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 many: 3.8** (likely 2.7 to 5.0)
  - Claude Opus 5.5 (3.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): 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 lot: 6.1** (likely 5.1 to 7.2)
  - Claude Opus 5.5 (5.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): 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 time: 6.1** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (6.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): 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 widely: 4.2** (likely 3.2 to 5.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.9): 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.
- **Vouched for: 5.3** (likely 4.1 to 6.7)
  - Claude Opus 5.5 (5.0): 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): 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.
- **Safe: 6.4** (likely 5.2 to 7.6)
  - Claude Opus 5.5 (6.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): 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

- Downloads, 4 weeks: 1M
- In a year: +63%
- GitHub stars: 334
- Commits, 12 months: 7
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/braintree/braintree_node
- npm: https://www.npmjs.com/package/braintree

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.
