<?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: CIM iFrameCommunicator issues in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35879#M20013</link>
    <description>&lt;P&gt;Ok, disregard this issue. I realize now that the issue was caused when the token was generated in my c# and not when the form was loaded in javascript.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-hosted-form-option-popup-won-t-close-on-cancel-or-suscessful/td-p/13146"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/CIM-hosted-form-option-popup-won-t-close-on-cancel-or-suscessful/td-p/13146&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This link cleared it up for me.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2013 18:43:45 GMT</pubDate>
    <dc:creator>h34dhun73r</dc:creator>
    <dc:date>2013-09-23T18:43:45Z</dc:date>
    <item>
      <title>CIM iFrameCommunicator issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35873#M20010</link>
      <description>&lt;P&gt;Hey guys,&lt;BR /&gt;I am having some issues with my CIM form and I think they are stemming from iFrameCommunicator not having the right URL. I have been told to update the&amp;nbsp;&lt;SPAN&gt;hostedProfileIFrameCommunicatorUrl in the xml, but I am running this all on the client in js and have no idea how to do that.&lt;BR /&gt;&lt;BR /&gt;I have downloaded the sample code for CIM hosted profile and even that is not closing the popup or hitting the iframeCommunicator.html file.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I have the users token in javascript which I assign to the form values. From there I load the openAddPaymentPopup() function and I am able to successfully save the users information to my Auth.net account. The problem is that the popup is not closing due to iframeCommunicator.html not being hit. Is there a way I can manually assign the iFrameCommunicatorURL property from the popup.js javascript?&lt;BR /&gt;&lt;BR /&gt;What can I do in my javascript to fix this issue?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 18:12:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35873#M20010</guid>
      <dc:creator>h34dhun73r</dc:creator>
      <dc:date>2013-09-23T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: CIM iFrameCommunicator issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35879#M20013</link>
      <description>&lt;P&gt;Ok, disregard this issue. I realize now that the issue was caused when the token was generated in my c# and not when the form was loaded in javascript.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A target="_blank" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-hosted-form-option-popup-won-t-close-on-cancel-or-suscessful/td-p/13146"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/CIM-hosted-form-option-popup-won-t-close-on-cancel-or-suscessful/td-p/13146&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This link cleared it up for me.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 18:43:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35879#M20013</guid>
      <dc:creator>h34dhun73r</dc:creator>
      <dc:date>2013-09-23T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: CIM iFrameCommunicator issues</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35881#M20014</link>
      <description>&lt;P&gt;The URL is part of getHostedProfilePageRequest, so I'm guessing it's encrypted into the token. Here's the relevant function from the PHP API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    /**
     * Get the CIM popup token (good for 15 minutes)
     *
     * @param int $customerProfileId
     *
     * @return AuthorizeNetCIM_Response

       $response = $request-&amp;gt;getHostedProfilePageRequest($profileID, array(
            'hostedProfilePageBorderVisible' =&amp;gt; 'false',
            'hostedProfileHeadingBgColor' =&amp;gt; '#E1E1E1',
            'hostedProfileIFrameCommunicatorUrl' =&amp;gt; "https://{$GLOBALS['_domain']}/contentx/IframeCommunicator.html"
       ));
	   $token=trim($response-&amp;gt;xml-&amp;gt;token);

     */
    public function getHostedProfilePageRequest($customerProfileId, $settings = false)
    {
        $this-&amp;gt;_constructXml("getHostedProfilePageRequest");
        $this-&amp;gt;_xml-&amp;gt;addChild("customerProfileId", $customerProfileId);
  
        if ($settings) {
            $settingsXML = $this-&amp;gt;_xml-&amp;gt;addChild("hostedProfileSettings");
            foreach ($settings as $key =&amp;gt; $val) {
                $settingXML = $settingsXML-&amp;gt;addChild("setting");
                $settingXML-&amp;gt;addChild("settingName", $key);
                $settingXML-&amp;gt;addChild("settingValue", $val);
            }
        }

        return $this-&amp;gt;_sendRequest();
    }&lt;/PRE&gt;&lt;P&gt;And then when I call that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    $response = $request-&amp;gt;getHostedProfilePageRequest(
        $company-&amp;gt;{'customer-id'}, array(
        'hostedProfilePageBorderVisible' =&amp;gt; 'false',
        'hostedProfileHeadingBgColor' =&amp;gt; '#E1E1E1',
        'hostedProfileIFrameCommunicatorUrl' =&amp;gt; "https://{$GLOBALS['_domain']}/contentx/IframeCommunicator.html"
    ));&lt;/PRE&gt;&lt;P&gt;Basically, you need to figure out how to set the hostedProfileIFrameCommunicatorUrl value to the URL path for your /contentx/IframeCommunicator.html page. If it still doesn't work after you do that, it's also possible you have an ancient browser that doesn't know how to do cross-browser interactions. But I don't think that's the problem you're having.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2013 18:53:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-iFrameCommunicator-issues/m-p/35881#M20014</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2013-09-23T18:53:37Z</dc:date>
    </item>
  </channel>
</rss>

