> ## Documentation Index
> Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing

> Test the Vaulting flow including account linking and digital wallet vaulting using test credentials in development.

The below steps and sets of credentials allow you to test the end-to-end flow of logging in to merchant accounts and vaulting a digital wallet.

<Steps>
  <Step title="Create a session" titleSize="h3">
    Call [Create Session](/api-reference/sessions/create-session) with `type: vault` and a dummy `external_user_id`.
  </Step>

  <Step title="Invoke the SDK" titleSize="h3">
    Use the `session_id` you receive when creating a session to invoke the SDK. In `KnotConfiguration`, pass a `merchantId` for a merchant of your choosing. In your implementation, merchants are retrieved via [List Merchants](/api-reference/merchants/list-merchants). For testing purposes, you can likely hardcode a single `id` for a merchant.
  </Step>

  <Step title="Login to a merchant account" titleSize="h3">
    Once you've invoked the SDK, you can login to a merchant account using one of the sets of credentials below, depending on what you would like to test.

    | Scenario         | Description                                                                                                                                                                                                                   | Username          | Password    |
    | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----------- |
    | Successful vault | Simulates successfully vaulting a digital wallet to a merchant account. After authentication to the merchant account, you will receive the [`VAULTING_SUCCEEDED`](/vaulting/webhook-events/vaulting-succeeded) webhook event. | `user_good_vault` | `pass_good` |
    | Failed vault     | Simulates a failed digital wallet vaulting attempt to a merchant account. After authentication to the merchant account, you will receive the [`VAULTING_FAILED`](/vaulting/webhook-events/vaulting-failed) webhook event.     | `user_good_vault` | `failed`    |
  </Step>
</Steps>
