<?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: Sample code worked Friday, not working today in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25903#M13795</link>
    <description>&lt;P&gt;Might be failing in _sendRequest in AuthorizeNetRequest.php&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2012 21:13:42 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2012-04-23T21:13:42Z</dc:date>
    <item>
      <title>Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25873#M13781</link>
      <description>&lt;P&gt;I'm just trying to get started integrating CIM with a client's site. I use PHP, and the code shown below worked last Friday. It issued a confirmation message and a new customer profile number. Today, without any changes whatever, it does nothing. Interestingly, when I called the help desk and they asked me for the response string, I tried to echo the string to the screen so that I could fulfill their request. Not only will the string not display, it crashes the program entirely, and an echo after that line never is performed. I'm stymied!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?&lt;/P&gt;&lt;P&gt;$link_id = mysql_connect("localhost", "reowned", "Claude8812");&lt;/P&gt;&lt;P&gt;mysql_select_db("reowned", $link_id);&lt;/P&gt;&lt;P&gt;$first=$_GET['first'];&lt;/P&gt;&lt;P&gt;$last=$_GET['last'];&lt;/P&gt;&lt;P&gt;$email=$_GET['email'];&lt;/P&gt;&lt;P&gt;$type=$_GET['type'];&lt;/P&gt;&lt;P&gt;$sql="insert into applicants (type, first, last, email, status) values (" . $type . ",'" . $first . "', '" . $last . "', '" . $email . "', 1)"; echo $sql;&lt;/P&gt;&lt;P&gt;//mysql_query($sql) or die("died");&lt;/P&gt;&lt;P&gt;//$query="SELECT last_insert_id()"; //$db_data=mysql_query($query); //while($rslast=mysql_fetch_array($db_data)) {&lt;/P&gt;&lt;P&gt;//$id=$rslast[0];&lt;/P&gt;&lt;P&gt;//} &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define("AUTHORIZENET_API_LOGIN_ID", "xxxxxxxxx");&lt;/P&gt;&lt;P&gt;define("AUTHORIZENET_TRANSACTION_KEY", "xxxxxxxxxx"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetCIM; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Create new customer profile &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new AuthorizeNetCustomer; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfile-&amp;gt;description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $first . " " . $last; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfile-&amp;gt;merchantCustomerId= time(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfile-&amp;gt;email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = $email; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;createCustomerProfile($customerProfile); &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;isOk()) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customerProfileId = $response-&amp;gt;getCustomerProfileId(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//&amp;nbsp;echo "resp=" . $response; &amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "ID=" . $CustomerProfileID;&lt;/P&gt;&lt;P&gt;//$sql="update applicants set profileid='" . $CustomProfileID . "' where id=" . $id;&lt;/P&gt;&lt;P&gt;//mysql_query($sql);&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 18:41:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25873#M13781</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25877#M13783</link>
      <description>&lt;P&gt;Did the insert to mysql applicants works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you echo something before and after the line&lt;/P&gt;&lt;P&gt;$response = $request-&amp;gt;createCustomerProfile($customerProfile);&amp;nbsp;&lt;/P&gt;&lt;P&gt;to see if the request get process before it crashes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did someone regenerate the transaction key. It happen.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:05:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25877#M13783</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-23T19:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25881#M13785</link>
      <description>&lt;P&gt;The insert did work. I put in echoes before and after the line, as requested, and both do display. And, yes, the first thing I did when it failed&amp;nbsp; this morning was to create a new transaction key and put it in the program. It didn't help. And it actually doesn't crash, so long as you don't try to echo the $response variable. If you do, nothing after that will work, and it doesn't echo anything.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:19:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25881#M13785</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T19:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25885#M13787</link>
      <description>&lt;P&gt;There is&lt;/P&gt;&lt;P&gt;$response-&amp;gt;getErrorMessage();&lt;/P&gt;&lt;P&gt;$response-&amp;gt;getResultCode();&lt;/P&gt;&lt;P&gt;$response-&amp;gt;getMessageCode();&lt;/P&gt;&lt;P&gt;$response-&amp;gt;getMessageText();&lt;/P&gt;&lt;P&gt;See if you can echo those after the createCustomerProfile($customerProfile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:28:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25885#M13787</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-23T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25889#M13789</link>
      <description>&lt;P&gt;None of them will work. I should say it fails on the first one. Last message echoed is "got here also,"&lt;/P&gt;&lt;P&gt;which immediately precedes $response-&amp;gt;getErrorMessage();&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:37:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25889#M13789</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25893#M13791</link>
      <description>&lt;P&gt;The single idea that seems most likely to me is that the login ID and transaction key are somehow invalid. I have a set of test codes that were given to me when I signed up for a test account. I'd be happy to supply those codes to you if that would be helpful in getting to the bottom of this issue. I really need to get authorize.net working, and I can't even get off the ground.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 20:02:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25893#M13791</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T20:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25895#M13792</link>
      <description>&lt;P&gt;Can you get to the &lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt; site on your browser.&lt;/P&gt;&lt;P&gt;Sound like it fail to connect to authorize.net.&lt;/P&gt;&lt;P&gt;You might need to debug the SDKs source code.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 20:12:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25895#M13792</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-23T20:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25897#M13793</link>
      <description>&lt;P&gt;The earlier test was on IE. Running that same page on Chrome yields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"&gt;This XML file does not appear to have any style information associated with it. The document tree is shown below.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 20:18:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25897#M13793</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25903#M13795</link>
      <description>&lt;P&gt;Might be failing in _sendRequest in AuthorizeNetRequest.php&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 21:13:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25903#M13795</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-23T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25909#M13798</link>
      <description>&lt;P&gt;So, how would I know? I think that if I could just get any code that uses authorize.net's CIM API to work, I would be off to the races. Do you have any other sample code that I could try, that would perhaps let me know if it wasn't getting to ANet at all?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 21:57:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25909#M13798</guid>
      <dc:creator>takabyte</dc:creator>
      <dc:date>2012-04-23T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code worked Friday, not working today</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25913#M13800</link>
      <description>&lt;P&gt;There is also CIM php &lt;A target="_self" href="http://developer.authorize.net/downloads/samplecode/"&gt;sample code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe you can use that.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2012 22:56:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sample-code-worked-Friday-not-working-today/m-p/25913#M13800</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-23T22:56:33Z</dc:date>
    </item>
  </channel>
</rss>

