Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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() and load() should be used in try catch block.

      • load()

        1. Purpose: Configures api.

        2. Returns begin() and end() methods if success

        3. mode interface(for setting environment):

          • Code Block
            declare enum IdvSdkMode {
              Production = "Production",
              Sandbox = "Sandbox"
            } 
        4. Exceptions explained:

          Code Block
          declare enum IdvSdkLoadFailure {
             NotSupportedMode = 'NotSupportedMode' // incorrect mode(environemnt) provided
          }

...