Members
(static) VERSION :string
The current version of the SDK, i.e. 3.11.1
.
- Source:
Methods
(static) create(options, callbackopt) → {Promise|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 | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
options |
object | Object containing all Client options: Properties
|
|||||||
callback |
callback |
<optional> |
The second argument, |
- Source:
Example
var createClient = require('braintree-web/client').create;
createClient({
authorization: CLIENT_AUTHORIZATION
}, function (createErr, clientInstance) {
// ...
});