1

We need to use EVO for payment in Angular 7 application.

Evo pages will be loaded inside an iframe as follows.

<iframe id="iframe_id" 
      style="border: 0px" 
      width="100%" height="600px" 
      [src]="url" 
      (load)="iframeContentLoaded()"
      scrolling="no">
</iframe>

We have to provide success and cancel URLs for this EVO. Once EVO processing has completed, it redirects to success URL, however the success url is being loaded in the iframe.

for example:

successUrl: http://localhost:4200/autoinsurance/#success
cancelUrl: http://localhost:4200/autoinsurance/#failure

Now success route component will be loaded in the iframe itself, however we need to load outside of that iframe.

Could somebody provide suggestion to achieve it?

youri
  • 1,140
  • 8
  • 19
Sunny
  • 25
  • 1
  • 9
  • Check this answer https://stackoverflow.com/a/2656798/3371440. – youri Jul 04 '19 at 08:49
  • I added the following code in my index.html as it is an angular application. It did not work. Still success/return url is loading in the iframe itself. – Sunny Jul 04 '19 at 10:23

0 Answers0