• This function can be used to call a custom interceptor function before the checkout is executed.
    The checkout is waiting until the interceptor function has finished or the timeout has elapsed.
    This function can only be called once, every other call will be rejected!

    Parameters

    • interceptorFn: ((shopInput?: string) => Promise<boolean>)

      The intercepting checkout function.
      It has to return a boolean value which indicates, if the original checkout should be executed or not.
      True: execute original checkout, False: skip original checkout

        • (shopInput?: string): Promise<boolean>
        • Parameters

          • Optional shopInput: string

          Returns Promise<boolean>

    • Optional timeoutMS: number

      Timeout value in ms.
      Original checkout will be called after this timeout, even interceptor function is still pending.

    Returns void

Generated using TypeDoc