Unico IDPay - DevCenter
HomepageAutenticaçãoAPI Reference
English
English
  • Introduction
  • ABOUT IDPAY
    • Unico ID Pay
    • Features
    • Use Cases
    • Chargeback
  • INTEGRATION
    • Overview
    • Authentication
      • Creating a Service Account
      • Preparing to make an authenticated request to the API
      • Additional resources
        • Example in JavaScript
        • Authentication Errors
        • Postman Collection
    • APIs
      • API Reference
        • Payment transactions
        • Chargeback
        • Credit card onboarding
      • Errors
      • Enumerated
    • Webhook
    • Controlling the experience
      • Overview
      • Requirements
      • Mobile
        • Android
        • Flutter
        • iOS
          • WKWebView
          • ASWebAuthenticationSession
      • Web
        • SDK
        • Redirect (deprecated)
    • Customizations
  • HELP & FAQ
    • FAQ
    • Best communication practices
    • Help Center
Powered by GitBook

Copyright © 2024 unico. All rights reserved.

On this page
  • 1) Using window.open()
  • 2) Using redirect

Was this helpful?

Export as PDF
  1. INTEGRATION
  2. Controlling the experience
  3. Web

Redirect (deprecated)

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

PreviousSDKNextCustomizations

Last updated 4 months ago

Was this helpful?


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 ;

  • 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 .

here
​
Help Center