Link to home
Start Free TrialLog in
Avatar of Ron Renninger
Ron Renninger

asked on

iframe and quthorize.net

I am using an iframe to display the form test.authorize.ent/payment/payment. when i press the contunite button on the authorize.net page it should close the iframe and take you to the final check out page. it opens in the iframe. Does anyone have an idea how to do this. I am also posting this to the authorize.net forum.

Below s the code i am using to call the iframe

 <div id="myForm" style="display:none">
    <div id="inline_content">
        <script src="Scripts/colorbox/jquery.colorbox.js"></script>
           <script type="text/javascript">
        $(".inline").colorbox({
            inline: true,
            opacity: 0.5, // overlay a bit less dark
            innerWidth: 640,
            innerHeight: 390,
            onComplete: function () { document.OutputForm.submit() }
        });

       
    </script>
         
        <form name="OutputForm" method="post" action="https://test.authorize.net/payment/payment" target="payframe" id="LinkTo" class="ShowForm">
      <input type="hidden" id="InToken" name="Token" value="" />
       </form>
        <iframe id="payframe" name="payframe"></iframe>
        </div>
        </div>
Avatar of Nicholas
Nicholas

Since the iframe is an external source there isn't anything you can do yourself bar set a timeout on the window to close e.g.
window.setTimeout("YourIframeID();", 50000);

Open in new window


If the third party allows their page to be in an iframe then it should be on them to close it.

Apart from that you cannot interact with an external website (with some proviso's)
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.