Initializing options

During initialization, you can define several options, such as which environment you would like to connect to, as well as define the way you would like to interact with the widget.

Initializing options

// use staging environment
// + sign transactions using the REDIRECT method
// + authentication using bearerTokenProvider supplied by the client
const venlyConnect = new VenlyConnect('Testaccount', { environment: 'sandbox',
                                                      windowMode: 'REDIRECT',
                                                      bearerTokenProvider: () => auth.token});

Signature:

VenlyConnect(clientID:string, options?: ConstructorOptions)

Parameters:

ParameterRequiredDescriptionExample
clientIDtrueClient ID (case sensitive)'Testaccount'
optionsfalseConstructorOptions{ windowMode: 'REDIRECT' }

Object Types

๐Ÿ“˜