<?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: Not Getting Hosted Profile Page response event in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65884#M39491</link>
    <description>&lt;P&gt;Thanks for the response but I did monitor the 'successfulSave' and it did not arrive - only a resizeWindow' event seems to be returned. I had removed my temporary console.log() debugging line for that event before posting the code - it never printed. I will remove the 'transactResponse' if my problem can be found.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jan 2019 16:45:43 GMT</pubDate>
    <dc:creator>wdbaker54</dc:creator>
    <dc:date>2019-01-18T16:45:43Z</dc:date>
    <item>
      <title>Not Getting Hosted Profile Page response event</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65816#M39430</link>
      <description>&lt;P&gt;I have a Laravel project webpage that includes a hosted payment form and a hosted profile form. Both are using iFrames and they both work in that they generate payments when submitting the payment form and create/remove payment profiles using the profile form. The problem is that I get a "transactResponse" event message from the Payment iFrame Communicator but the Profile iFrame Communicator only seems to give “resizeWindow” event messages. I have attempted to keep both sets of code as mirror images of each other with the only changes being in the settings passed to the token generator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the user requests the profile editor the following is loaded:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div id="iframe_holder" class="center-block" data-mediator="methods-form-loader" style="max-width: 1000px"&amp;gt;
    &amp;lt;iframe id="load_methods" class="embed-responsive-item" name="load_methods" scrolling="yes" width="595" height="500"
            frameborder="0"&amp;gt;
    &amp;lt;/iframe&amp;gt;

    &amp;lt;form id="send_hptoken" action="https://accept.authorize.net/customer/manage" method="post" target="load_methods"&amp;gt;
        &amp;lt;input type="hidden" name="token"
               value="XFM+gaW2Sk1XzJr12C4xdhTe7Ot9oO4Qte78UEKuxl5NObhQ7AIjI3CZgtMwL9pK6SgJIs3x/XKzUV5xYenio8NUAd6Ca1aCjzMDnkfRBjXR767Jn89WPxvNa6z2mwjUT+aUNAIprb28/CYx8aWx1YhpjTgQNoHWgybH2zfIu8IL1k0G2T8gdRwf+1/CuxjwKya3PVISNTn+/yZyENngCfW6Drzb7hFkU32EyGIRw1RCZPee0buIuB2/Uu+Zo2SWShqcEmo/T71jkTuXC2WpVHZpZjn5Im/TjeZCAFH5HvKtXPb8Azx0+n3tyiEWYpd8X1Hk55ZJD0mfdSLOdvESIrK7c5FQhSVXniT9aLLneCij7uwVSju7uf/h0k698MgHUdniIJD0sRoWH2ZRHHXgR4H/809UEI4aG/KRGjY2JSHz+ZqLOcwcdQNQGfvM2OC2UJUlXb+nIMJqRqyokTw6TlprkYkoathiU+yHywzkI2lBzHf1tR5wXMwQ8NCl8/77dz0KII0WjJO7UqRNIKpNSPOE+gY05VLVHmIV3rzcKFeOD5/7F9lueLSu7H+rRC0JlAaVgdqvCHt9ET4RJk4SSX6TPkkaYskAyuRhKLQzgvXaxgRznC58qw8c0ezVFZ6yJFVbowO+woe1a0KFt9kDPU91neUHma/GMhQVA+WF0CJPuxW39GFRq0/qPqeh1g8LCbvW0/gGSJ2upTFJYpgcBZQ1cUcM8m5AB74Jq6BIXE1/e3yEheALkETJh6bUPvwO.43eyw4AmDuUM"&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;script&amp;gt;
    $(document).ready(function () {
        window.CommunicationHandler = {};

        function parseQueryString(str) {
            var vars = [];
            var arr = str.split('&amp;amp;');
            var pair;
            for (var i = 0; i &amp;lt; arr.length; i++) {
                pair = arr[i].split('=');
                vars[pair[0]] = unescape(pair[1]);
            }
            return vars;
        }

        window.CommunicationHandler.onReceiveCommunication = function (argument) {
            console.log("onReceiveCommunication: " + JSON.stringify(argument));
            var params = parseQueryString(argument.qstr)

            // the following represent actions returned by authnet and should be applied to the page
            switch (params['action']) {
                case "resizeWindow"     :
                    break;

                case "successfulSave"   :
                    break;

                case "cancel"           :
                    break;

                case "transactResponse" :
                    sessionStorage.removeItem("HPTokenTime");
                    var transResponse = JSON.parse(params['response']);
                    console.log(transResponse);
                    break;
            }
        }

        //send the token
        $('#send_hptoken').submit();
    });
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;The list of settings used when creating the token are:&lt;/P&gt;&lt;PRE&gt;{
  "hostedProfilePageBorderVisible": "false",
  "hostedProfileIFrameCommunicatorUrl": "https:\/\/...\/billing\/MethodsIFrameCommunicator",
  "hostedProfileHeadingBgColor": "#00ff00",
  "hostedProfileBillingAddressRequired": "true",
  "hostedProfileCardCodeRequired": "true",
  "hostedProfileBillingAddressOptions": "showBillingAddress",
  "hostedProfileManageOptions": "showPayment",
  "hostedProfilePaymentOptions": "showAll",
  "hostedProfileValidationMode": "testMode"
}&lt;/PRE&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:51:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65816#M39430</guid>
      <dc:creator>wdbaker54</dc:creator>
      <dc:date>2019-01-16T20:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not Getting Hosted Profile Page response event</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65881#M39488</link>
      <description>&lt;P&gt;Since the profile does not do a transaction there is no transaction response from that one.&amp;nbsp; There is a success/failure indicator only, listen for &lt;SPAN style="color: #032f62; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: pre; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;successfulSave&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:10:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65881#M39488</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2019-01-18T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not Getting Hosted Profile Page response event</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65884#M39491</link>
      <description>&lt;P&gt;Thanks for the response but I did monitor the 'successfulSave' and it did not arrive - only a resizeWindow' event seems to be returned. I had removed my temporary console.log() debugging line for that event before posting the code - it never printed. I will remove the 'transactResponse' if my problem can be found.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 16:45:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65884#M39491</guid>
      <dc:creator>wdbaker54</dc:creator>
      <dc:date>2019-01-18T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not Getting Hosted Profile Page response event</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65958#M39556</link>
      <description>&lt;P&gt;We are experiencing the same issue.&amp;nbsp; For customer profile the only messages getting returned are the action "resizeWindow".&amp;nbsp; &amp;nbsp;I am working on a proof of concept for a major change we want to make and this has me dead in the water that there is no acknowledgement for the successfulSave.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 19:15:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65958#M39556</guid>
      <dc:creator>Ansira2300</dc:creator>
      <dc:date>2019-01-22T19:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not Getting Hosted Profile Page response event</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65960#M39557</link>
      <description>&lt;P&gt;I am glad I am not alone in this. As a work-around, I have the iFrame embedded in a modal dialog and I capture the dialog's 'close' event and then query AuthNet for the profile and associated payment profiles and then update the local record with any changes found. Not elegant and I am sure I am eating some time to process but it does get me past the problem for the time being. I guess I need to work on using web hooks but for now I am under a time crunch.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 19:23:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Not-Getting-Hosted-Profile-Page-response-event/m-p/65960#M39557</guid>
      <dc:creator>wdbaker54</dc:creator>
      <dc:date>2019-01-22T19:23:06Z</dc:date>
    </item>
  </channel>
</rss>

