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.

// 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

Parameter

Required

Description

Example

clientID

true

Client ID (case sensitive)

'Testaccount'

options

false

{ windowMode: 'REDIRECT' }

Object Types

pageConstructorOptionspageWindowModepagePopupOptions

Last updated