<?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 form response in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-hosted-form-response/m-p/68450#M41651</link>
    <description>&lt;P&gt;I have the same issue.&amp;nbsp; How do we get the data to the requesting js?&amp;nbsp; I get a response but not in the page calling the iframe.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 17:33:03 GMT</pubDate>
    <dc:creator>Stellar2019</dc:creator>
    <dc:date>2019-07-16T17:33:03Z</dc:date>
    <item>
      <title>Accept hosted form response</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-hosted-form-response/m-p/62362#M36700</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I successfully implement your Accep Hosted example in Model box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when i click on pay button&amp;nbsp;&amp;nbsp;always,my transaction&amp;nbsp;&lt;SPAN class="lia-search-match-lithium"&gt;response&lt;/SPAN&gt;, as it returns empty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;action=transactResponse&amp;amp;response={&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have added&amp;nbsp;IFrameCommunicator.html ur in&amp;nbsp;hostedPaymentIFrameCommunicatorUrl&lt;/P&gt;&lt;P&gt;but i can't track my issue ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;reposne from&amp;nbsp;&amp;nbsp;test.authorize.net/payment/Api.ashx&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;{"resultCode":"Ok","messageCode":"Ok","transactionData":{"accountType":"Visa","accountNumber":"XXXX0130"&lt;BR /&gt;,"transId":"60101095995","responseCode":"1","authorization":"V3DWUE","billTo":{"firstName":"Ellen","lastName"&lt;BR /&gt;:"Johnson","company":"Souveniropolis","address":"14 Main Street","city":"Pecan Springs","state":"TX"&lt;BR /&gt;,"zip":"44628","country":"USA"},"totalAmount":"2.00","dateTime":"3/28/2018 9:31:21 AM"}}&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IFrameCommunicator Code&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;IFrame Communicator&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;BR /&gt;To securely communicate between our Accept Hosted form and your web page,&lt;BR /&gt;we need a communicator page which will be hosted on your site alongside&lt;BR /&gt;your checkout/payment page. You can provide the URL of the communicator&lt;BR /&gt;page in your token request, which will allow Authorize.Net to embed the&lt;BR /&gt;communicator page in the payment form, and send JavaScript messaging through&lt;BR /&gt;your communicator page to a listener script on your main page.&lt;/P&gt;&lt;P&gt;This page contains a JavaScript that listens for events from the payment&lt;BR /&gt;form and passes them to an event listener in the main page.&lt;BR /&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;function callParentFunction(str) {&lt;BR /&gt;if (str &amp;amp;&amp;amp; str.length &amp;gt; 0 &amp;amp;&amp;amp; window.parent &amp;amp;&amp;amp; window.parent.parent&lt;BR /&gt;&amp;amp;&amp;amp; window.parent.parent.CommunicationHandler &amp;amp;&amp;amp; window.parent.parent.CommunicationHandler.onReceiveCommunication)&lt;BR /&gt;{&lt;BR /&gt;var referrer = document.referrer;&lt;BR /&gt;&lt;BR /&gt;window.parent.parent.CommunicationHandler.onReceiveCommunication({qstr : str , parent : referrer});&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function receiveMessage(event) {&lt;BR /&gt;if (event &amp;amp;&amp;amp; event.data) {&lt;BR /&gt;callParentFunction(event.data);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (window.addEventListener) {&lt;BR /&gt;window.addEventListener("message", receiveMessage, false);&lt;BR /&gt;} else if (window.attachEvent) {&lt;BR /&gt;window.attachEvent("onmessage", receiveMessage);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if (window.location.hash &amp;amp;&amp;amp; window.location.hash.length &amp;gt; 1) {&lt;BR /&gt;alert(window.location.hash);&lt;BR /&gt;callParentFunction(window.location.hash.substring(1));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated,&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 09:57:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-hosted-form-response/m-p/62362#M36700</guid>
      <dc:creator>ioiki</dc:creator>
      <dc:date>2018-03-28T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accept hosted form response</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-hosted-form-response/m-p/68450#M41651</link>
      <description>&lt;P&gt;I have the same issue.&amp;nbsp; How do we get the data to the requesting js?&amp;nbsp; I get a response but not in the page calling the iframe.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 17:33:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-hosted-form-response/m-p/68450#M41651</guid>
      <dc:creator>Stellar2019</dc:creator>
      <dc:date>2019-07-16T17:33:03Z</dc:date>
    </item>
  </channel>
</rss>

