braintree/client

Members

(static) VERSION

Properties:
Name Type Description
VERSION string

the current version of the SDK

Source:

Methods

(static) create(options, callback) → {void}

This function is the entry point for the braintree.client module. It is used for creating Client instances that service communication to Braintree servers.

Parameters:
Name Type Description
options object

Object containing all Client options

Properties
Name Type Description
authorization string

A tokenizationKey or clientToken

callback errback

The second argument, data, is the Client instance

Source:
Returns:
Type
void
Example
var createClient = require('braintree-web/client').create;

createClient({
  authorization: CLIENT_TOKEN
}, function (err, client) {
  ...
});