<?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 reCAPTCHA Block covers Pay button in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-reCAPTCHA-Block-covers-Pay-button/m-p/89048#M56120</link>
    <description>&lt;P&gt;I had hoped this developer's forum would have been more active but going through the posts I see the vast majority of posts go unanswered!&amp;nbsp; Regardless, I believe I found a solution to this issue or at a minimum, a viable work-around.&lt;BR /&gt;&lt;BR /&gt;To review ... As I stated in my original post, AuthNet sends a [action=resizeWindow] parameter with the token response based on the options you have enabled (e.g. set to "true").&amp;nbsp; I suppose is to account for all the addon blocks in the modal/iFrame popup window.&amp;nbsp; This resize parameter overrides the preset initial size of this popup window.&amp;nbsp; In the case of enabling CAPTCHA, the parameter value they send does not account for the size (height) of that reCAPTCHA block.&amp;nbsp; The behavior is the PAY/Cancel buttons briefly appear and then the reCAPTCHA block is loaded but, without enough space, it ends up overlaying on top of the PAY/Cancel buttons.&amp;nbsp; This is only on first load.&amp;nbsp; If you close and re-open the payment window, it works properly as the session is open and you already have the token response which is not expired.&amp;nbsp; Annoying and certainly confusing for customers and their online experience.&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;To get around this issue I needed to place a buffer in the popup window that could not be ignored.&amp;nbsp; If you review the integration code sample for Accept Hosted you will see the "case" statement for resizing the window&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;		case "resizeWindow":
			var w = parseInt(params["width"]);
			var h = parseInt(params["height"]);
			var ifrm = document.getElementById("iframeAuthorizeNet");
			ifrm.style.width = w.toString() + "px";
			ifrm.style.height = h.toString() + "px";
			centerPopup();
			break;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The second directive of this case statement is:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var h = parseInt(params["height"]);&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Since the parameter is being parsed as an Int, I used simple math to add a buffer to this value.&amp;nbsp; I changed that line to this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var h = parseInt(params["height"])+70;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The result is the form now loads properly on the First load.&amp;nbsp; I have tested this on both Desktop and Mobile and it does not create much (if any) blank space on the form popup window.&lt;BR /&gt;&lt;BR /&gt;I would like to have some feedback from AuthNet on this or at a minimum, some other developers in the community.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 13:46:49 GMT</pubDate>
    <dc:creator>Cognecy</dc:creator>
    <dc:date>2024-03-20T13:46:49Z</dc:date>
    <item>
      <title>Accept Hosted reCAPTCHA Block covers Pay button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-reCAPTCHA-Block-covers-Pay-button/m-p/89034#M56109</link>
      <description>&lt;P&gt;Has anyone solved the issue with the Accept Hosted (iframe/modal/lightbox method) reCAPTCHA block covering the Pay/Cancel Buttons?&lt;BR /&gt;&lt;BR /&gt;There was a post on this a while ago but it did not seem like it was ever resolved and replies to that post were not allowed for me.&lt;BR /&gt;&lt;BR /&gt;The issue is that when enabling the CAPTCHA feature for the iFrame window ("settingName": "hostedPaymentSecurityOptions"), the reCAPTCHA box covers the "PAY/Cancel" buttons.&amp;nbsp; If you close and re-open the popup, it is fine and the CAPTCHA block is above the Pay/Cancel Buttons.&lt;BR /&gt;&lt;BR /&gt;I have reviewed the integration code in detail and there is no variance from the recommendations in the integration guide.&amp;nbsp; It seems the response that comes back from AuthNet has a [action=resizeWindow] parameter that gets passed in that tells the iFrame how big to make the popup window on "FIRST LOAD".&amp;nbsp; This value is not enough to account for the hight+padding of the reCAPTCHA block so it ends up overlayed on top of the PAY/Cancel buttons.&amp;nbsp; As I mentioned previously, if you close and then re-open the payment window, the sizing is correct since we already have the token response therefore the automatic sizing of the window is then applied.&lt;BR /&gt;&lt;BR /&gt;Any suggestions or fixes would be most appreciated as this is impacting customer experience for several of my hosting customers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 22:34:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-reCAPTCHA-Block-covers-Pay-button/m-p/89034#M56109</guid>
      <dc:creator>Cognecy</dc:creator>
      <dc:date>2024-03-18T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted reCAPTCHA Block covers Pay button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-reCAPTCHA-Block-covers-Pay-button/m-p/89048#M56120</link>
      <description>&lt;P&gt;I had hoped this developer's forum would have been more active but going through the posts I see the vast majority of posts go unanswered!&amp;nbsp; Regardless, I believe I found a solution to this issue or at a minimum, a viable work-around.&lt;BR /&gt;&lt;BR /&gt;To review ... As I stated in my original post, AuthNet sends a [action=resizeWindow] parameter with the token response based on the options you have enabled (e.g. set to "true").&amp;nbsp; I suppose is to account for all the addon blocks in the modal/iFrame popup window.&amp;nbsp; This resize parameter overrides the preset initial size of this popup window.&amp;nbsp; In the case of enabling CAPTCHA, the parameter value they send does not account for the size (height) of that reCAPTCHA block.&amp;nbsp; The behavior is the PAY/Cancel buttons briefly appear and then the reCAPTCHA block is loaded but, without enough space, it ends up overlaying on top of the PAY/Cancel buttons.&amp;nbsp; This is only on first load.&amp;nbsp; If you close and re-open the payment window, it works properly as the session is open and you already have the token response which is not expired.&amp;nbsp; Annoying and certainly confusing for customers and their online experience.&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;To get around this issue I needed to place a buffer in the popup window that could not be ignored.&amp;nbsp; If you review the integration code sample for Accept Hosted you will see the "case" statement for resizing the window&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;		case "resizeWindow":
			var w = parseInt(params["width"]);
			var h = parseInt(params["height"]);
			var ifrm = document.getElementById("iframeAuthorizeNet");
			ifrm.style.width = w.toString() + "px";
			ifrm.style.height = h.toString() + "px";
			centerPopup();
			break;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The second directive of this case statement is:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var h = parseInt(params["height"]);&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Since the parameter is being parsed as an Int, I used simple math to add a buffer to this value.&amp;nbsp; I changed that line to this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var h = parseInt(params["height"])+70;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The result is the form now loads properly on the First load.&amp;nbsp; I have tested this on both Desktop and Mobile and it does not create much (if any) blank space on the form popup window.&lt;BR /&gt;&lt;BR /&gt;I would like to have some feedback from AuthNet on this or at a minimum, some other developers in the community.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 13:46:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-reCAPTCHA-Block-covers-Pay-button/m-p/89048#M56120</guid>
      <dc:creator>Cognecy</dc:creator>
      <dc:date>2024-03-20T13:46:49Z</dc:date>
    </item>
  </channel>
</rss>

