<?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: iframe transactResponse intermittent issue in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69257#M42320</link>
    <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24724"&gt;@halfhoot&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You have a receipt url in your API call? How does the user get to the next page? Is it through this JavaScript form submission?</description>
    <pubDate>Mon, 30 Sep 2019 17:40:56 GMT</pubDate>
    <dc:creator>Renaissance</dc:creator>
    <dc:date>2019-09-30T17:40:56Z</dc:date>
    <item>
      <title>iframe transactResponse intermittent issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69253#M42316</link>
      <description>&lt;P&gt;I use the iframe drop in UI thing and I'm having an issue where a small percentage of users are getting authorized, but I'm not successfully going to the next page to mark them as paid in my database.&amp;nbsp; MOST of the users are going through fine.&amp;nbsp; It's just a few every now and then, but it's a problem.&amp;nbsp; And I have no idea where the error is.&amp;nbsp; I contacted support and they said the transaction went through okay and send a reponse.&amp;nbsp; And I put in some code on my side to try to catch any javascript errors and email me the issue, but it has never triggered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, it appears as if the transactReponse is never triggering on a random very small percentage of transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me show you what I'm doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my javascript on the page.&amp;nbsp; I won't bother putting in the comm code or the token request as those are just ye standard and the code is working... it's just these intermittent issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function receiveComm(querystr)&lt;BR /&gt;{&lt;BR /&gt;var params = parseQueryString(querystr);&lt;BR /&gt;switch (params["action"])&lt;BR /&gt;{&lt;BR /&gt;case "successfulSave":&lt;BR /&gt;break;&lt;BR /&gt;case "cancel":&lt;BR /&gt;break;&lt;BR /&gt;case "resizeWindow":&lt;BR /&gt;var w = parseInt(params["width"]);&lt;BR /&gt;var h = parseInt(params["height"]);&lt;BR /&gt;var ifrm = document.getElementById("add_payment");&lt;BR /&gt;ifrm.style.width = w.toString() + "px";&lt;BR /&gt;ifrm.style.height = h.toString() + "px";&lt;BR /&gt;break;&lt;BR /&gt;case "transactResponse":&lt;BR /&gt;var ifrm = document.getElementById("add_payment");&lt;BR /&gt;ifrm.style.display = 'none';&lt;BR /&gt;$("#ar").val(params["response"]);&lt;BR /&gt;$("#reg_form").submit();&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function parseQueryString(str)&lt;BR /&gt;{&lt;BR /&gt;var vars = [];&lt;BR /&gt;var arr = str.toString().split('&amp;amp;');&lt;BR /&gt;var pair;&lt;BR /&gt;for (var i = 0; i &amp;lt; arr.length; i++) {&lt;BR /&gt;pair = arr[i].split('=');&lt;BR /&gt;vars.push(pair[0]);&lt;BR /&gt;vars[pair[0]] = unescape(pair[1]);&lt;BR /&gt;}&lt;BR /&gt;return vars;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's very simple.&amp;nbsp; I'm simply including the response into a form variable and then submitting the form.&amp;nbsp; I use server side code to parse the response on the next page and deal with it.&amp;nbsp; It's just that some people are getting authorized, but it's never making it to the next page.&amp;nbsp; If it were an error on the next page, I would get an error email from my server side code.&amp;nbsp; I even just started sending some information on the successful call of the receiveComm function above... even if it weren't a transactresponse and I just don't seem to be getting a response at all for the transactions in question.&amp;nbsp; Like I said 95% of them seem to all be happy and work correctly, it's just that small percentage that at least APPEAR to not be properly triggering the receiveComm function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried wrapping the javascript above in a try catch loop and sending myself information, but it never triggered so there does not appear to be any errors happening.&amp;nbsp; I can't replicate the issue myself.&amp;nbsp; But it's happening often enough that we have to do something about it.&amp;nbsp; I'm at my wits end.&amp;nbsp; It's aweful hard to troubleshoot with no errors and not even sure where the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to give some more information, my process is to just authorize the transaction and then once it sends back the receivecomm transactResponse, I go to the next page, capture the transaction, then set them as paid in my database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp; I can provide whatever other code or information is needed.&amp;nbsp; Also any suggestions on how I could find out where the error was would also be awesome.&amp;nbsp; Anything really.&amp;nbsp; I'm unsure what to do from here, but I have to get the problem fixed.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 17:11:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69253#M42316</guid>
      <dc:creator>halfhoot</dc:creator>
      <dc:date>2019-09-30T17:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: iframe transactResponse intermittent issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69257#M42320</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24724"&gt;@halfhoot&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;You have a receipt url in your API call? How does the user get to the next page? Is it through this JavaScript form submission?</description>
      <pubDate>Mon, 30 Sep 2019 17:40:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69257#M42320</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-09-30T17:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: iframe transactResponse intermittent issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69258#M42321</link>
      <description>&lt;P&gt;It's the bit of code: $("#reg_form").submit();&amp;nbsp; Just a form submission.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:00:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69258#M42321</guid>
      <dc:creator>halfhoot</dc:creator>
      <dc:date>2019-09-30T18:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: iframe transactResponse intermittent issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69301#M42353</link>
      <description>&lt;P&gt;I don't have the specific answers you are looking for, but I did notice that this appears to be the same issue reported in another forum post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Iframe-communicator-loading-issue/m-p/58971/highlight/true#M33575" target="_self"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Iframe-communicator-loading-issue/m-p/58971/highlight/true#M33575&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2019 05:41:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/iframe-transactResponse-intermittent-issue/m-p/69301#M42353</guid>
      <dc:creator>Anna81</dc:creator>
      <dc:date>2019-10-05T05:41:37Z</dc:date>
    </item>
  </channel>
</rss>

