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
|
||||||
callback |
errback | The second argument, |
- Source:
Returns:
- Type
- void
Example
var createClient = require('braintree-web/client').create;
createClient({
authorization: CLIENT_TOKEN
}, function (err, client) {
...
});