<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/59270#M33866</link>
    <description>&lt;P&gt;Same here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only time I see a&amp;nbsp;resizeWindow message is when I click the radio button to change from credit card mode to bank account mode or vice-versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never seen a&amp;nbsp;resizeWindow message when resizing the window.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 15:26:12 GMT</pubDate>
    <dc:creator>Chris2017</dc:creator>
    <dc:date>2017-08-09T15:26:12Z</dc:date>
    <item>
      <title>Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window resize</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58064#M32736</link>
      <description>&lt;P&gt;I'm currently evaluating the possibility of using &lt;A href="http://developer.authorize.net/api/reference/features/accept_hosted.html" target="_self"&gt;Accept Hosted&lt;/A&gt; form inside an iFrame in&amp;nbsp;one of my projects.&amp;nbsp;I've run into an issue while building a small test app, which, I believe, can also be reproduced in&amp;nbsp;the &lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;Accept Sample App&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In step 3 of the "&lt;A href="https://github.com/AuthorizeNet/accept-sample-app/blob/master/README-AcceptHosted.md#step-3--listen-for-accept-hosted-messages" target="_self"&gt;Accept Hosted Step-by-Step&lt;/A&gt;" guide&amp;nbsp;there is a remark regarding "resizeWindow" message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;An important message to receive is the &lt;/SPAN&gt;resizeWindow&lt;SPAN&gt; message. Because our Accept Hosted form is responsive, we need to let your application know when the iframe should be resized. For example, when the form becomes single column on a phone, the height is increased and this height increase is sent in a &lt;/SPAN&gt;ResizeWindow&lt;SPAN&gt; message."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, in my tests this does not appear to be the case: when the iFrame that&amp;nbsp;hosts the payment form is set to have a width as a percentage of the browser window&amp;nbsp;width and the browser is resized so that the form changes from&amp;nbsp;a&amp;nbsp;two-column layout to a single-column one, the "resizeWindow" message is not sent. This results in both "Pay" and "Cancel" buttons being pushed below the visible&amp;nbsp;area of the iFrame, making the form unusable. If&amp;nbsp;a user manipulates the form in such a way that does trigger "resizeWindow" message (for example, if user checks the&amp;nbsp;"bank account" or "credit card" radio button), the height is updated so that all form controls are visible again.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the steps to reproduce the issue&amp;nbsp;using&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app" target="_self"&gt;Accept Sample App&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install and run the sample app as described in the "&lt;A href="https://github.com/AuthorizeNet/accept-sample-app#how-to-use-the-sample-app" target="_self"&gt;How to Use the Sample App&lt;/A&gt;" section&lt;/LI&gt;&lt;LI&gt;Login with a customer profile ID and navigate to "pay" tab&lt;/LI&gt;&lt;LI&gt;Observe that the payment form is loaded, it has a two-column layout and both "pay" and "cancel" buttons are visible&lt;/LI&gt;&lt;LI&gt;Change the browser window width so that the form switches from two- to one-column layout&lt;/LI&gt;&lt;LI&gt;Observe that while window width is changing the form height does not change, while certain inputs and both "pay" and "cancel" buttons are pushed down and&amp;nbsp;become invisible.&lt;/LI&gt;&lt;LI&gt;Select "Bank account" &amp;nbsp;payment option at the top of the form&lt;/LI&gt;&lt;LI&gt;Observe the form height now changed and all controls are now visible again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Is there a way to have&amp;nbsp;the form&amp;nbsp;send the "resizeWindow" notification&amp;nbsp;in&amp;nbsp;step 5?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I&amp;nbsp;certainly could listen to "resize" event on window&amp;nbsp;in my host application, I don't believe that I can query the height of the payment form because of the browser restrictions on the cross-domain iFrame contents access.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate any suggestions on the topic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maxim.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:50:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58064#M32736</guid>
      <dc:creator>maxim_baranov</dc:creator>
      <dc:date>2017-05-12T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58320#M32982</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21709"&gt;@maxim_baranov&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's been a while since you posted this question, are you still experiencing this issue or did you find a solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 22:21:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58320#M32982</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-06-01T22:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58328#M32988</link>
      <description>&lt;P&gt;I was not able to find a solution, mainly because of the difficulties of determining an actual height of the content inside the iframe.&amp;nbsp;I assume that one approach would be to have payment form itself detect the viewport width change and send the same resizeWindow message it does when the height of the content changes because of&amp;nbsp;other reasons, such as switching between payment methods (CC or check). But that would require changes on the Accept Hosted side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've also considered using a fixed width container to host the iframe for our project, thus circumventing the whole issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately&amp;nbsp;(this issues was not a deciding factor), we decided to spend some extra time and build a custom payment form using the Accept.js instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 09:12:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/58328#M32988</guid>
      <dc:creator>maxim_baranov</dc:creator>
      <dc:date>2017-06-02T09:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/59270#M33866</link>
      <description>&lt;P&gt;Same here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only time I see a&amp;nbsp;resizeWindow message is when I click the radio button to change from credit card mode to bank account mode or vice-versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never seen a&amp;nbsp;resizeWindow message when resizing the window.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:26:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/59270#M33866</guid>
      <dc:creator>Chris2017</dc:creator>
      <dc:date>2017-08-09T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/59289#M33884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22146"&gt;@Chris2017&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll look into this. I honestly don't know whether it should be sending resize messages every time the layout changes or just when it's first loaded. I'm guessing the thinking might be that it needs to send its size when it's first loaded so you can set the iframe size appropriately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's going to load up at different sizes depending on whether it's loaded on mobile or desktop, for example, so setting the size at that time is important. However, it might be being assumed that the window size is not typically changed during the payment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll have to double-check with some folks to see what the design was, whether it's working as designed, and clarify in documentation as appropriate.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 00:34:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/59289#M33884</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-08-10T00:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/62692#M36954</link>
      <description>&lt;P&gt;Sorry to resurrect an old thread, but I don't see a resolution here, and I'm having the same problem as the OP. Accept.js and AcceptUI.js won't work for us because of PCI and payment flow issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt; wrote, "...it might be being assumed that the window size is not typically changed during the payment."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This assumption doesn't always hold, particularly when you consider orientation changes on tablets and phones. Starting in landscape and rotating to portrait after the iframe is rendered can make the buttons overflow out of the bottom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any resolution or workaround? Iframes are known to be quirky in responsive designs. I'm continuing my research and experimentation, but I'm hoping someone here can save me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Scott&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 18:05:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/62692#M36954</guid>
      <dc:creator>scottnes1</dc:creator>
      <dc:date>2018-04-18T18:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/67766#M41100</link>
      <description>&lt;P&gt;Anyone have a solution for this? I'm running into the same issue.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 00:42:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/67766#M41100</guid>
      <dc:creator>melissadavies</dc:creator>
      <dc:date>2019-05-20T00:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/70920#M43611</link>
      <description>&lt;P&gt;No sir couldn't find it sorry for that if any updates avalable put it here&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 06:12:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/70920#M43611</guid>
      <dc:creator>lawrence1379</dc:creator>
      <dc:date>2020-03-05T06:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted in iFrame: resizeWindow is not sent when form height changes because of window res</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/85446#M53742</link>
      <description>&lt;P&gt;I guess I have to add my frustration to the list. I read Aaron's comment above, and had to do a facepalm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;...However, it might be being assumed that the window size is not typically changed during the payment.&lt;/SPAN&gt;&lt;P&gt;I'll have to double-check with some folks to see what the design was, whether it's working as designed, and clarify in documentation as appropriate.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The issue - regardless of whether it is working as designed - is that its current design is flawed. It's either a bug in the code or a bug in the design - it doesn't matter. People resize their browsers all the time (at least I do when I'm multitasking) and if I suddenly couldn't pay I would be very confused for a few seconds. As a developer I would figure it out. As a customer? Who knows. I might have just lost a sale.&lt;/P&gt;&lt;P&gt;The sad thing is this isn't a difficult or time-consuming bug to fix, and it's frustrating that authorize.net hasn't cared to fix it in 5 or 6 years. This is making me second-guess our choice of payment gateways. I hope I don't see too much more of this attitude towards web design.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 23:40:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-in-iFrame-resizeWindow-is-not-sent-when-form/m-p/85446#M53742</guid>
      <dc:creator>ebsjbulcher</dc:creator>
      <dc:date>2023-01-11T23:40:09Z</dc:date>
    </item>
  </channel>
</rss>

