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 require
d like other modules.
Examples
var braintree = require('braintree-web');
braintree.client.create(...);
<script src="https://js.braintreegateway.com/web/3.36.0/js/client.min.js"></script>
<script>
window.braintree.client.create(...);
</script>
// main.js
require.config({
paths: {
braintreeClient: 'https://js.braintreegateway.com/web/3.36.0/js/client.min'
}
});
require(['braintreeClient'], function (braintreeClient) {
braintreeClient.create(...);
});
Members
(static) americanExpress :module:braintree-web/american-express
(static) applePay :module:braintree-web/apple-pay
(static) client :module:braintree-web/client
(static) dataCollector :module:braintree-web/data-collector
(static) googlePayment :module:braintree-web/google-payment
(static) hostedFields :module:braintree-web/hosted-fields
(static) masterpass :module:braintree-web/masterpass
(static) paymentRequest :module:braintree-web/payment-request
(static) paypal :module:braintree-web/paypal
(static) paypalCheckout :module:braintree-web/paypal-checkout
(static) threeDSecure :module:braintree-web/three-d-secure
(static) unionpay :module:braintree-web/unionpay
(static) usBankAccount :module:braintree-web/us-bank-account
(static) vaultManager :module:braintree-web/vault-manager
(static) venmo :module:braintree-web/venmo
(static) VERSION :string
The current version of the SDK, i.e. 3.36.0
.