Redirect (deprecated)

In this section, you will learn how to implement Redirect in your web application for using the Unico IDPay product.


This method of controlling the web experience is being deprecated. For better conversion of IDPay in your application, follow the method outlined in the "SDK" section.

The web version offers the option to use the redirect model, but the iframe model is the most recommended.

1) Using window.open()


When creating the transaction, the redirectUrl field was passed as a parameter, which will be used later. You can use this option.

The window.open() option consists of opening a new browser tab for the user to complete the capture flow. Once done, the tab will close and redirect back to the previously visited site. We recommend:

  • Follow the public documentation on this, which can be found here;

  • Monitor if the URL has changed (to the redirectUrl), and then close the tab using window.close().

2) Using redirect


When creating the transaction, the redirectUrl field was passed as a parameter, which will be used later. You need to follow these steps:

  • In your regular flow (where IDPay is integrated), you will redirect the customer to the link generated via the API;

  • After this, the customer within the IDPay webpage will complete the necessary steps to continue the flow;

  • Once completed, they will be redirected back to your page (using the redirectUrl passed when creating the transaction).


Still need help?

Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.

Last updated

Copyright © 2024 unico. All rights reserved.