<?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 - php SDK for getHostedProfilePageRequest for hosted CIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/17090#M9585</link>
    <description>&lt;P&gt;Hey avimarcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting this. We are currently working on getting the hosted CIM feature built into the SDKs, so thanks for posting your code for those working on it in the meantime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2011 21:24:20 GMT</pubDate>
    <dc:creator>Michelle</dc:creator>
    <dc:date>2011-09-13T21:24:20Z</dc:date>
    <item>
      <title>CIM - php SDK for getHostedProfilePageRequest for hosted CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/16736#M9417</link>
      <description>&lt;P&gt;It drove me nuts looking for it.. unless I just didn't have the latest SDK (which would be horrible) so here's the code I had to write:&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;it goes in AuthorizeNewCIM.php:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        public function getHostedProfilePageRequest($customerProfileId,$setting=0)
    {
        $this-&amp;gt;_constructXml("getHostedProfilePageRequest");
        $this-&amp;gt;_xml-&amp;gt;addChild("customerProfileId", $customerProfileId);
  
        if(!empty($setting)) {
			 $set_settings_global=$this-&amp;gt;_xml-&amp;gt;addChild("hostedProfileSettings");
			foreach($setting as $key=&amp;gt;$val){
				$set_settings=$set_settings_global-&amp;gt;addChild("setting");
				$set_settings-&amp;gt;addChild("settingName",$key);
				$set_settings-&amp;gt;addChild("settingValue",$val);
				}//end each setting
			}//end has a setting
		/*hostedProfileReturnUrl,
		hostedProfileReturnUrlText,
		hostedProfileHeadingBgColor,
		hostedProfilePageBorderVisible,
		hostedProfileIFrameCommunicatorUrl*/

        return $this-&amp;gt;_sendRequest();
    }&lt;/PRE&gt;&lt;P&gt;And you call it like so:&lt;/P&gt;&lt;PRE&gt;$request = new AuthorizeNetCIM;
	$settings=array('hostedProfileIFrameCommunicatorUrl'=&amp;gt;'&lt;A href="http://domain.com/contentx/IframeCommunicator.html');" target="_blank"&gt;http://domain.com/contentx/IframeCommunicator.html');&lt;/A&gt;

	$response = $request-&amp;gt;getHostedProfilePageRequest($profileID,$settings);
	$token=trim($response-&amp;gt;xml-&amp;gt;token);&lt;/PRE&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;And then find the rest of the code in the file with the samples. You don't need to put the DIV exactly before the&amp;nbsp;&amp;lt;/body&amp;gt;﻿, but if you don't pass the iframecommunicator.html URL, it won't close the popup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: woops, I'm not sure it will correctly pass an array of values. I only needed and tested the one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 20:04:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/16736#M9417</guid>
      <dc:creator>avimarcus</dc:creator>
      <dc:date>2011-09-05T20:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - php SDK for getHostedProfilePageRequest for hosted CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/17090#M9585</link>
      <description>&lt;P&gt;Hey avimarcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting this. We are currently working on getting the hosted CIM feature built into the SDKs, so thanks for posting your code for those working on it in the meantime.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 21:24:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/17090#M9585</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-09-13T21:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - php SDK for getHostedProfilePageRequest for hosted CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/30986#M16186</link>
      <description>&lt;P&gt;Hi Michelle,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this build into the PHP CIM SDK now?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 08:29:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-php-SDK-for-getHostedProfilePageRequest-for-hosted-CIM/m-p/30986#M16186</guid>
      <dc:creator>ggrdev</dc:creator>
      <dc:date>2012-10-31T08:29:55Z</dc:date>
    </item>
  </channel>
</rss>

