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.
1
// use staging environment
2
// + sign transactions using the REDIRECT method
3
// + authentication using bearerTokenProvider supplied by the client
4
const venlyConnect = new VenlyConnect('Testaccount', { environment: 'staging',
5
windowMode: 'REDIRECT',
6
bearerTokenProvider: () => auth.token});
Copied!

Signature

1
VenlyConnect(clientID:string, options?: ConstructorOptions)
Copied!

Parameters

Parameter
Required
Description
Example
clientID
true
Client ID (case sensitive)
'Testaccount'
options
false
​ConstructorOptions​
{ windowMode: 'REDIRECT' }

Object Types

Last modified 7d ago