braintree-web

This is the top-level module exported by the Braintree JavaScript SDK. In a browser environment, this will be the global braintree object. In a CommonJS environment (like Browserify or Webpack), it will be the default export of the braintree-web package. In AMD environments (like RequireJS), it can be required like other modules.

Source:
Examples

CommonJS

var braintree = require('braintree-web');

braintree.client.create(...);

In the browser

<script src="https://js.braintreegateway.com/web/3.87.0/js/client.min.js"></script>
<script>
  window.braintree.client.create(...);
</script>

AMD

// main.js
require.config({
  paths: {
    braintreeClient: 'https://js.braintreegateway.com/web/3.87.0/js/client.min'
  }
});

require(['braintreeClient'], function (braintreeClient) {
  braintreeClient.create(...);
});

Members

(static) americanExpress :module:braintree-web/american-express

Source:

(static) applePay :module:braintree-web/apple-pay

Source:

(static) client :module:braintree-web/client

Source:

(static) dataCollector :module:braintree-web/data-collector

Source:

(static) googlePayment :module:braintree-web/google-payment

Source:

(static) hostedFields :module:braintree-web/hosted-fields

Source:

(static) localPayment :module:braintree-web/local-payment

Source:

(static) masterpass :module:braintree-web/masterpass

Source:

(static) paymentRequest :module:braintree-web/payment-request

Source:

(static) paypal :module:braintree-web/paypal

Source:

(static) paypalCheckout :module:braintree-web/paypal-checkout

Source:

(static) sepa :module:braintree-web/sepa

Source:

(static) threeDSecure :module:braintree-web/three-d-secure

Source:

(static) usBankAccount :module:braintree-web/us-bank-account

Source:

(static) vaultManager :module:braintree-web/vault-manager

Source:

(static) venmo :module:braintree-web/venmo

Source:

(static) VERSION :string

The current version of the SDK, i.e. 3.87.0.

Source:

(static) visaCheckout :module:braintree-web/visa-checkout

Source: