<?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: Having trouble with PHP sample code for CIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51887#M27201</link>
    <description>&lt;P&gt;OK, I've changed it to use curl instead of fsockopen, and I'm actually getting some stuff back now.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2015 15:20:12 GMT</pubDate>
    <dc:creator>unitedu</dc:creator>
    <dc:date>2015-08-26T15:20:12Z</dc:date>
    <item>
      <title>Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51880#M27196</link>
      <description>&lt;P&gt;I've done programming for Authorize.net in the past without any problems, but I wanted to take a look at CIM in the sandbox today. I'm having trouble with the PHP sample code. I entered the login id and transaction key into vars.php, but when I try to run profile_create.php, the only response I get back is "&lt;SPAN&gt;The operation failed with the following errors:" (with nothing listed afterwards).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm running this on a test server that has a copy of our production code on it that works fine, so it shouldn't be a problem with the server setup.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2015 22:55:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51880#M27196</guid>
      <dc:creator>unitedu</dc:creator>
      <dc:date>2015-08-25T22:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51887#M27201</link>
      <description>&lt;P&gt;OK, I've changed it to use curl instead of fsockopen, and I'm actually getting some stuff back now.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 15:20:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51887#M27201</guid>
      <dc:creator>unitedu</dc:creator>
      <dc:date>2015-08-26T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51890#M27204</link>
      <description>&lt;P&gt;However the XML parsing isn't working because the response contains more than just XML. So much for useful sample code...&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 16:43:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51890#M27204</guid>
      <dc:creator>unitedu</dc:creator>
      <dc:date>2015-08-26T16:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51892#M27206</link>
      <description>&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function parse_api_response($content)
{
   $content = substr($content, strpos($content, "&amp;lt;")); // strip out header lines
   $parsedresponse = simplexml_load_string($content, "SimpleXMLElement");
   if ("Ok" != $parsedresponse-&amp;gt;messages-&amp;gt;resultCode) {
      echo "The operation failed with the following errors:&amp;lt;br&amp;gt;";
      foreach ($parsedresponse-&amp;gt;messages-&amp;gt;message as $msg) {
         echo "[" . htmlspecialchars($msg-&amp;gt;code) . "] " . htmlspecialchars($msg-&amp;gt;text) . "&amp;lt;br&amp;gt;";
      }
      echo "&amp;lt;br&amp;gt;";
   }
   return $parsedresponse;
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Aug 2015 17:01:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51892#M27206</guid>
      <dc:creator>unitedu</dc:creator>
      <dc:date>2015-08-26T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51915#M27227</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the new PHP samle code on github, it's still work-in-progress but here are the CIM samples: &amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-php/tree/master/CustomerProfiles" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php/tree/master/CustomerProfiles&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see they are also matched with our API explorer&amp;nbsp;&lt;STRONG&gt;&lt;A href="http://developer.authorize.net/api/reference/index.html#manage-customer-profiles" target="_blank"&gt;http://developer.authorize.net/api/reference/index.html#manage-customer-profiles&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hope this helps,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Brian&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 08:22:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/51915#M27227</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2015-08-27T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with PHP sample code for CIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/52022#M27321</link>
      <description>&lt;P&gt;Thanks. I tried that and found it to also have problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then&amp;nbsp;found&amp;nbsp;this, which seems to work pretty well:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.johnconde.net/blog/tutorial-integrate-authorize-net-xml-api-universal-php-class/" target="_blank"&gt;http://www.johnconde.net/blog/tutorial-integrate-authorize-net-xml-api-universal-php-class/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 22:10:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Having-trouble-with-PHP-sample-code-for-CIM/m-p/52022#M27321</guid>
      <dc:creator>unitedu</dc:creator>
      <dc:date>2015-09-03T22:10:33Z</dc:date>
    </item>
  </channel>
</rss>

