...
Customize the script with the following required properties:
Code Block IdvSdk.load({ mode: IdvSdkMode.Sandbox, onSuccess: (props) => console.log('onSuccess', props), onFailure: (props) => console.log('onFailure', props), });
Both
begin()
andload()
should be used in try catch block.load
()Purpose: Configures api.
Returns
begin()
andend()
methods if successmode
interface(for setting environment):Code Block declare enum IdvSdkMode { Production = "Production", Sandbox = "Sandbox" }
Exceptions explained:
Code Block declare enum IdvSdkLoadFailure { NotSupportedMode = 'NotSupportedMode' // incorrect mode(environemnt) provided }
...