BraintreeClient3

BraintreeClient3

new BraintreeClient3(config)

Wrapper class that allows the usage of a Braintree Client SDK v3 on a checkout UI integration

Parameters:
Name Type Description
config Object

The client default configuration

Version:
  • 1.0
Since:
  • 1.0
Author:
License:
Source:

Extends

Members

modules :Object

The external modules that this instance may uses as specified by constructor argument

Type:
  • Object
Since:
  • 1.0
Inherited From:
Default Value:
  • {}
Source:

(abstract) noop :function

An dummy no-operation callback function

Type:
  • function
Since:
  • 1.0
Inherited From:
Source:

(constant) UNDEF :string

The "undefined" constant to be used while checking if the type of an object is undefined.

Type:
  • string
Since:
  • 1.0
Inherited From:
Default Value:
  • undefined
Source:
Example
if (myInstance.UNDEF !== typeof myVar) {...}

Methods

execModuleFn(name, fn, argsopt, thisArgopt)

Execute a given function within a helper external module

Parameters:
Name Type Attributes Description
name string

The module name which defines the called function

fn string

The called function name within the module given by name

args string | Array.<string> <optional>

The function argument or an array of arguments that are passed to the called function

thisArg object <optional>

The context in which the function is executed

Since:
  • 1.0
Inherited From:
Source:
Example
myInstance.execModuleFn('utils', 'parseError', err)

init()

Class initialization prototype. Normally the children classes call the init method as the last statement of the class constructor.

Since:
  • 1.0
Overrides:
Source: