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:
When generating the session, include the
redirect_uriparameter in your API request.Set the value of
redirect_urito 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:
Set the
redirect_uriparameter topopup_close.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