<?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: AIM sample not working? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16686#M9394</link>
    <description>&lt;P&gt;LOL &amp;nbsp;How would anyone have ever known to do that? That line really should be added to the "15-minute integration" page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, though, I'm still not getting anything. Here is the exact file that I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// I made sure that this is included correctly, using&lt;/P&gt;&lt;P&gt;// get_included_files();&lt;/P&gt;&lt;P&gt;require_once 'anet_php_sdk/AuthorizeNet.php';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// of course, I'm using my actual key and ID, not the placeholders here&lt;/P&gt;&lt;P&gt;$transaction = new AuthorizeNetAIM('MY_ID', 'MY_KEY');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;setSandbox(true);&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;amount = '9.99';&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;card_num = '4007000000027';&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;exp_date = '10/16';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "1 ";&lt;/P&gt;&lt;P&gt;$response = $transaction-&amp;gt;authorizeAndCapture();&lt;/P&gt;&lt;P&gt;echo "2 ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;approved) {&lt;/P&gt;&lt;P&gt;echo "&amp;lt;h1&amp;gt;Success! The test credit card has been charged!&amp;lt;/h1&amp;gt;";&lt;/P&gt;&lt;P&gt;echo "Transaction ID: " . $response-&amp;gt;transaction_id;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else echo $response-&amp;gt;error_message;&lt;/P&gt;&lt;P&gt;?&amp;gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the "1" from the first echo, but that's it, so apparently it's dying on the "$response=..." line.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Sep 2011 01:43:46 GMT</pubDate>
    <dc:creator>jwcarlton</dc:creator>
    <dc:date>2011-09-03T01:43:46Z</dc:date>
    <item>
      <title>AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16646#M9375</link>
      <description>&lt;P&gt;I'm brand new to using Auth.net (literally; I signed the paperwork today), and am working on implementing the code. To start, I'm using the test code here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/integration/fifteenminutes#custom" target="_blank"&gt;https://developer.authorize.net/integration/fifteenminutes&lt;/A&gt;&amp;nbsp;(click on AIM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a test account (about and have plugged in my test API login ID and transaction key, downloaded and uploaded the SDK, and double checked that the "require_once" path is correct. But when I run aim_test.php, I'm just getting a blank screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a few "echo" statements to see where it's failing, and it seems to fail at:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$response = $transaction-&amp;gt;authorizeAndCapture();﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not getting an error message at all, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is really step 1 (getting the sample test provided to run), I'm at a loss on how to go further. Any advice on what's going wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2011 06:39:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16646#M9375</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-02T06:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16656#M9380</link>
      <description>&lt;P&gt;That's the "live" version of the code. To make it work with a test account, change as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$transaction = new AuthorizeNetAIM('YOUR_API_LOGIN_ID', 'YOUR_TRANSACTION_KEY');
$transaction-&amp;gt;setSandbox(true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;For that matter, even on a live account you have to specify setSandbox(false) to get it to work (at least in my experience), so the sample code is less than helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2011 13:30:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16656#M9380</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-02T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16686#M9394</link>
      <description>&lt;P&gt;LOL &amp;nbsp;How would anyone have ever known to do that? That line really should be added to the "15-minute integration" page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, though, I'm still not getting anything. Here is the exact file that I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// I made sure that this is included correctly, using&lt;/P&gt;&lt;P&gt;// get_included_files();&lt;/P&gt;&lt;P&gt;require_once 'anet_php_sdk/AuthorizeNet.php';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// of course, I'm using my actual key and ID, not the placeholders here&lt;/P&gt;&lt;P&gt;$transaction = new AuthorizeNetAIM('MY_ID', 'MY_KEY');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;setSandbox(true);&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;amount = '9.99';&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;card_num = '4007000000027';&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;exp_date = '10/16';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo "1 ";&lt;/P&gt;&lt;P&gt;$response = $transaction-&amp;gt;authorizeAndCapture();&lt;/P&gt;&lt;P&gt;echo "2 ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;approved) {&lt;/P&gt;&lt;P&gt;echo "&amp;lt;h1&amp;gt;Success! The test credit card has been charged!&amp;lt;/h1&amp;gt;";&lt;/P&gt;&lt;P&gt;echo "Transaction ID: " . $response-&amp;gt;transaction_id;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else echo $response-&amp;gt;error_message;&lt;/P&gt;&lt;P&gt;?&amp;gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the "1" from the first echo, but that's it, so apparently it's dying on the "$response=..." line.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 01:43:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16686#M9394</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-03T01:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16688#M9395</link>
      <description>&lt;P&gt;I should also mention that I've checked that my firewall does allow port 443 and port 80 tcp, and I do have cURL installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wait, I might have spoken too soon. I have Curl, but not CurlSSL. Let me recompile later tonight with CurlSSL, and come back to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do wish that the "test integration" had included a bit more information. This 15-minute integration has turned in to 72 hours.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 02:16:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16688#M9395</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-03T02:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16690#M9396</link>
      <description>&lt;P&gt;I just got CurlSSL installed (which turned out to be a huge pain, but not related to Auth.net), and now the test script is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the admins for Auth.net are reading this, they might want to consider making a statement somewhere that it's required! I just found it by searching old Google topics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help, though, TJPride (Fenton?).&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 08:17:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16690#M9396</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-03T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: AIM sample not working?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16692#M9397</link>
      <description>&lt;P&gt;No problem. Fenton, MO is where I live, incidently.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 13:27:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-sample-not-working/m-p/16692#M9397</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-03T13:27:19Z</dc:date>
    </item>
  </channel>
</rss>

