Skip to main content

Web

The web version is the simplest scenario. The following options are possible:

1) Using window.open()

When creating the transaction, the redirectUrl field was passed as a parameter and will be used later. This option can be used.

The window.open()option consists of opening a new browser tab for the user to perform the capture flow. At the end of the flow, the tab is closed and the user is redirected to the previous site. To do this, the following is recommended:

  • Follow the public documentation about the `window.open() option in Window: open() method;
  • Monitor if the URL has changed (to redirectUrl) and then close the tab using window.close();

2) Using redirect

When creating the transaction, the redirectUrl field was passed as a parameter and will be used later. The following steps need to be followed:

  • In your common flow (which IDPay is inserted) you will redirect the customer to the link generated through the API;
  • Once this is done, the customer, in the IDPay webpage, will carry out the necessary procedures to continue the flow;
  • Once completed, the customer will be redirected to your page (using the redirectUrl passed when creating the transaction);
IMPORTANT

Through iFrame the application will not work, for security reasons.

Any concerns?

Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.