---
title: "braintree 4.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each braintree release removed, renamed or changed: 76 breaking changes in 2 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/braintree
last_updated: 2026-12-04
---

# braintree breaking changes

braintree 4.0.0 (May 10, 2021) is its newest release with breaking changes, 6 of them. The first: Removed ExternalVault.CardTypeIsInvalid. Every breaking API change we have recorded in braintree on RubyGems: 76 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.42.0`. [Source repository](https://github.com/braintree/braintree%5Fruby)

Its 4.0.0 release requires Ruby 2.6.0 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [3.0.1](#v-3-0-1) to [4.0.0](#v-4-0-0): 6 breaking changes in 1 version.

## braintree 4.0.0 breaking changes

braintree 4.0.0, released May 10, 2021: 6 breaking changes.

- **Removed** `ExternalVault.CardTypeIsInvalid`  

The error code constant ExternalVault::CardTypeIsInvalid is removed. Code that references it will fail. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)
- **Removed** `PaymentMethod.create`  

The paypal_vault_without_upgrade parameter is no longer accepted by PaymentMethod#create. Remove it from calls. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)
- **Removed** `RiskData.CustomerBrowserIsTooLong`  

The error code constant RiskData::CustomerBrowserIsTooLong is removed. Code that references it will fail. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `PaymentMethodNonce.details`  

details is now an instance of PaymentMethodNonceDetails rather than a hash. Code that reads it as a hash must switch to attribute access. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)
- **Behavior changed** `PaymentMethodNonceDetails.payer_info`  

payer_info is now an instance of PaymentMethodNonceDetailsPayerInfo rather than a hash. Code that reads it as a hash must switch to attribute access. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)
- **Configuration changed**  

The gemspec requires Ruby >= 2.6.0. Users on older Ruby versions must upgrade Ruby before installing this release. [github.com](https://github.com/braintree/braintree%5Fruby/blob/4.0.0/CHANGELOG.md)

## braintree 3.0.1 breaking changes

braintree 3.0.1, released October 19, 2020: 70 breaking changes.

- **Removed**  

These payment features are no longer supported; code using them must be removed or moved to another payment method. [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `Address.delete`  

Removes deprecated method Address#delete in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `Address.update`  

Removes deprecated method Address#update in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `Address.update!`  

Removes deprecated method Address#update! in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.credit`  

Removes deprecated method CreditCard#credit in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.credit!`  

Removes deprecated method CreditCard#credit! in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.delete`  

Removes deprecated method CreditCard#delete in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.grant`  

Removes deprecated method CreditCard.grant in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.sale`  

Removes deprecated method CreditCard#sale in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)
- **Removed** `CreditCard.sale!`  

Removes deprecated method CreditCard#sale! in braintree 3.0.1 [github.com](https://github.com/braintree/braintree%5Fruby/blob/3.0.1/CHANGELOG.md)

And 60 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
