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:
Parameter | Required | Description | Example |
---|---|---|---|
clientID | true | Client ID (case sensitive) | 'Testaccount' |
options | false | ConstructorOptions | { windowMode: 'REDIRECT' } |
Object Types
Updated about 1 month ago