How to Set a Custom Redirect URL via Onboarding SDK

Last updated: November 27, 2024

When using our onboarding SDK, you can control what happens after the customer completes the verification process. This article explains how to set a custom redirect URL or close the window automatically.

Setting a Custom Redirect URL

To set a custom redirect URL after the KYC session is completed:

  1. When generating the session, include the redirect_uri parameter in your API request.

  2. Set the value of redirect_uri to your desired URL (e.g., a page on your domain).

Closing the Window Automatically

If you prefer to close the window automatically after the KYC session:

  1. Set the redirect_uri parameter to popup_close.

  2. This will trigger a window.close() event, closing the iframe or popup window.

For a full list of available parameters and their descriptions, please refer to our API documentation: https://docs.aiprise.com/docs/getting-started