New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

braintree-web

Package Overview
Dependencies
Maintainers
0
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braintree-web - npm Package Versions

1
29

3.0.0-beta.12

Diff

Changelog

Source

3.0.0-beta.12

  • Some error messages have been changed to be more consistent across components

  • Update BraintreeError to include a code, which can be used to check for specific errors:

    hostedFieldsInstance.tokenize(function (err, payload) {
      if (err && err.code === 'FIELDS_EMPTY') {
        // Handle user input error
      }
    });
    
  • Fix an incorrect <script> tag example in API docs

  • Fix an error in Require.js API docs

  • Hosted Fields

    • Automatic input formatting disabled for Android Firefox
    • Add vault as an option to tokenize which allows cards to be vaulted on tokenization
    • Add addClass and removeClass for updating classes on fields
    • Stop applying invalid CSS classes to potentiallyValid fields on tokenization attempts
  • PayPal

    • Consistently return BraintreeError objects when the PayPal flow is canceled
    • Return error during create when using a webview
  • UnionPay

    • Add type to tokenize payload
  • Add Apple Pay component.

braintree
published 3.0.0-beta.11 •

Changelog

Source

3.0.0-beta.11

  • Update create error messages to be more consistent
  • Add type to Hosted Fields and PayPal tokenize payloads
  • Hosted Fields
    • Add getState method that returns the state of all fields and possible card types
    • Fixes a regression where expiration dates with a past month within the current year were treated as valid
  • PayPal
    • Add useraction option to paypal.tokenize

BREAKING CHANGES

  • UnionPay improvements.
    • Card capabilities
      • Renamed isUnionPayEnrollmentRequired to isSupported.
      • When isSupported is false, Braintree cannot process UnionPay card. Customer would need to use a different card.
    • Enrollment response has smsCodeRequired flag.
      • If true, customer will receive an SMS code, that is required for tokenization.
      • If false, SMS code should not be passed during tokenization. Tokenization can be done immediately.
braintree
published 2.27.0 •

braintree
published 3.0.0-beta.10 •

Changelog

Source

3.0.0-beta.10

  • Return a human readable error message when requests are rate-limited.
  • Add 3D Secure component.
  • Hosted Fields
    • Throw an error when initializing with an invalid field key. See BREAKING CHANGES.
    • The formatting for expiration dates no longer inserts a leading 0 if the date begins with 1. This prevents the numbers from jumping around for dates beginning 01, 10, 11, or 12.

BREAKING CHANGES

  • An error is now returned when initializing Hosted Fields with an invalid field; it is no longer silently ignored.
braintree
published 2.26.0 •

braintree
published 3.0.0-beta.9 •

Changelog

Source

3.0.0-beta.9

  • No longer throws exceptions when using require('braintree-web') during server-side rendering with libraries such as React.js.
  • index.js and debug.js in the npm/bower modules no longer reference package.json.
  • Ajax errors in IE9 now report as general error instead of an empty string. It is impossible to get details additional about network errors in IE9 XDomainRequests.
  • Add 3D Secure component
  • UnionPay
    • Expiration date or month/year together are now optional as some UnionPay cards do not have expiration dates.
  • PayPal
    • All create options aside from client have now moved to tokenize. See BREAKING CHANGES.
    • For one-time checkout, add intent option which can be sale or authorize
    • HTTPS is no longer required
    • Add offerCredit as an option to tokenize for offering customers PayPal Credit as a form of payment

BREAKING CHANGES

  • PayPal's create options have moved to tokenize. Deferring these options to tokenization time allows greater flexibility in your checkout experience.

    braintree.paypal.create({
      client: clientInstance
    }, function (err, paypalInstance) {
      paypalInstance.tokenize({
        flow: 'checkout',
        amount: '10.00',
        currency: 'USD'
      }, function (tokenizeErr, payload) {
        // ...
      });
    });
    
braintree
published 2.25.0 •

braintree
published 3.0.0-beta.8 •

Changelog

Source

3.0.0-beta.8

  • Hosted Fields
    • Update card-validator to 2.2.8
    • Throw a proper error when creating without a callback
  • UnionPay
    • Fix tokenization bugs
  • Data Collector
    • Throw a proper error when creating without a callback
  • Improved error messaging when two components' versions do not match one another.

BREAKING CHANGES

  • Data Collector

    • The create API has changed. options.kount for dataCollector.create is now a simple boolean:

      dataCollector.create({
        client: clientInstance,
        kount: true,
        paypal: true
      }, function (err, collector) {});
      
braintree
published 2.24.1 •

braintree
published 3.0.0-beta.7 •

Changelog

Source

3.0.0-beta.7

  • Hosted Fields
    • Add inputSubmitRequest event which is called when the user presses the Enter key (or equivalent) in a Hosted Fields input.

BREAKING CHANGES

  • Make all callbacks consistently called asynchronously
  • Hosted Fields
    • The fieldStateChange event is now 4 events: empty, notEmpty, validityChange, and cardTypeChange
    • Change event payloads to always return the full state of the form and all possible card types
  • Data Collector
    • A client option is now required
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc