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.
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.
- peers Stripe SDK downloadsLast4Weeks: 135.8M, up 7.8x, versus braintree's 1.63x
- npm hasTypes: No bundled types
- spreedly.com/blog/stripe-vs-braintree: Developers prefer Stripe's tooling
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.
- paypal.com/us/braintree: Confirms support for cards, PayPal, eligible wallets, and local payment methods.
- developer.paypal.com/braintree/docs/guides/recurring-billing/overview: Establishes the scope of built-in subscriptions.
- github.com/stripe/stripe-node: Stripe ships and maintains its TypeScript declarations.
- docs.stripe.com/billing/subscriptions/usage-based: Stripe Billing supports metered subscription pricing.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, github commitsLastYear, peers: Braintree trails every peer on download growth and trails Stripe on commits and indexed use.
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.
- nerdwallet.com/business/software/learn/stripe-vs-braintree: Stripe is favored generally; Braintree fits PayPal-heavy merchants
- peers Stripe SDK dependentRepos: 46,266 dependents versus 1,466 for braintree
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.
- survey.stackoverflow.co/2025/technology: Developer survey establishes the breadth of Node.js use.
- developer.paypal.com/braintree/docs/start/hello-server/node: Documents the Node.js server role and separate client integration.
- developer.paypal.com/braintree/articles/get-started/overview: Explains merchant onboarding and supported-country limits.
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.
- npm hasTypes: No bundled TypeScript types
- npmjs.com/package/@types/braintree: Types come from the separate DefinitelyTyped package
- github.com/braintree/braintree_node/issues: 'Need better support for TypeScript' open since 2020
- github.com/braintree/braintree_node/blob/master/CHANGELOG.md: Recent versions add reverse(), idempotency keys and new payment types
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.
- github.com/braintree/braintree_node/blob/master/CHANGELOG.md: Documents transaction reversal in 3.41.0 and recent payments features.
- developer.paypal.com/braintree/docs/start/hello-server/node: Shows a working server flow and sandbox test inputs.
- developer.paypal.com/braintree/docs/guides/recurring-billing/overview: Documents plans, vaulted payment methods, monthly increments, and retry behavior.
- raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/types/braintree/package.json: Confirms declarations are maintained in DefinitelyTyped.
- npm hasTypes: The published SDK does not bundle TypeScript declarations.
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.
- npm versionsLastYear: 7 versions, latest 3.41.0 on 2026-10-19
- github commitsLastYear: Only 7 public commits
- nbcnews.com/business/personal-finance/paypal-brings-many-brands-single-umbrella-venmo-remains-stand-alone-rcna193525: Braintree is being folded into the PayPal Open brand
- s205.q4cdn.com/901458612/files/doc_downloads/transcript/PayPal-Investor-Day-2025_Win-Checkout.pdf: PayPal treats Braintree as its enterprise processing priority
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.
- npm versionsLastYear, npm latestPublishedAt, github commitsLastYear: Seven npm versions and seven commits, with the latest package published in October 2026.
- peers commitsLastYear: Stripe logged 187 commits and Adyen logged 315.
- github.com/braintree/braintree_node: Lists 3.x as the active major line with deprecation dates still to be announced.
- developer.paypal.com/braintree/docs/reference/general/server-sdk-deprecation-policy: Explains how PayPal handles breaking upgrades and support transitions.
- github.com/braintree/braintree_node/issues/232: Maintainers confirmed the dependency regression was patched the day it was reported.
- github.com/braintree/braintree_node/issues/176: Native TypeScript request from 2020 remained open and drew another request in 2026.
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.
- merchantmaverick.com/stripe-vs-braintree: Reviewer says Braintree increasingly looks like an afterthought at PayPal
- sitepoint.com/stripe-vs-braintree-the-ultimate-guide: Stripe docs and API are seen as easier to integrate
- hackerNews stories / bluesky posts: Zero community attention
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.
- medusajs.com/integrations/lambdacurry-braintree: Lists a community provider with payments, saved methods, and webhook handling.
- reddit.com/r/react/comments/1lf4zin/hi_guys_has_anyone_here_ever_integrated_paypal: A developer describes implementing direct Braintree subscription cancellation in Next.js.
- reddit.com/r/webdev/comments/168s49h/trying_to_add_payments_to_my_project_is_the_worst: First-hand gateway comparisons describe usable payment APIs and mixed integration effort.
- paypalobjects.com/marketing/web23/us/en/brc/wellful-increases-approval-rates-with-paypal-braintree/paypal-casestudy-wellful-fnl.pdf: PayPal’s case study describes Wellful’s production use of the gateway.
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.
- advisories total: 0 advisories
- scorecard score: 3.6 with many zero checks
- npm dependencies: 3 dependencies
- github.com/braintree/braintree_node/blob/master/CHANGELOG.md: 3.40.0 fixed path traversal across gateways
- github.com/braintree/braintree_node/issues: Open issues on a wrong dependency and a security contact
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.
- npm license, npm dependencies: MIT license and three direct runtime dependencies.
- advisories total, scorecard score, scorecard checks: Zero indexed advisories, 3.6 overall, and weak repository controls.
- github.com/braintree/braintree_node/blob/master/CHANGELOG.md: Documents security fixes missing from the advisory feed.
- github.com/braintree/braintree_node/security/policy: Gives a PayPal reporting channel and specifies which release line receives patches.
- github.com/braintree/braintree_node/issues/232: Documents same-day removal of an unintended runtime dependency.
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
- 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