<?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: ColdFusion AIM integration in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28332#M14932</link>
    <description>&lt;P&gt;Follow up post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm setting the value of the list returned by authorize.net as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset api_response=cfhttp.filecontent&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I'm setting a value to the authorization code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfoutput&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset code = #ListGetAt(api_response,1)#&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfif #code# EQ "1"&amp;gt;&lt;/P&gt;&lt;P&gt;The transaction was successful!&lt;/P&gt;&lt;P&gt;&amp;lt;efelse&amp;gt;&lt;/P&gt;&lt;P&gt;The transaction was not successful.&lt;/P&gt;&lt;P&gt;&amp;lt;/cfif&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/cfoutput&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that it is returning a blank page instead of the right code.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jul 2012 01:42:04 GMT</pubDate>
    <dc:creator>rlichner</dc:creator>
    <dc:date>2012-07-29T01:42:04Z</dc:date>
    <item>
      <title>ColdFusion AIM integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28330#M14931</link>
      <description>&lt;P&gt;H E L P !!!!!&lt;/P&gt;&lt;P&gt;I'm new to authorize.net and have created a test page using the sample code provided but I'm having issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) It doesn't work... Here's the results I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&lt;BR /&gt;1&lt;BR /&gt;103&lt;BR /&gt;This transaction cannot be accepted.&lt;BR /&gt;P&lt;BR /&gt;0&lt;BR /&gt;1.00&lt;BR /&gt;CC&lt;BR /&gt;auth_only&lt;BR /&gt;490C4A89E10A4B3FDFDF73E186105766&lt;BR /&gt;8k9SfYv95M9QH8qJ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) How do I pick up the variable names so I can provide a correct response?&lt;/P&gt;&lt;P&gt;I'm trying to use a cfif statement to determine what happens on my end but it's a no go.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfif #x_response_code IS "1"&amp;gt;&lt;/P&gt;&lt;P&gt;Transaction approved&lt;/P&gt;&lt;P&gt;&amp;lt;cfelse&amp;gt;&lt;/P&gt;&lt;P&gt;Transaction error!&lt;/P&gt;&lt;P&gt;&amp;lt;/cfif&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2012 00:22:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28330#M14931</guid>
      <dc:creator>rlichner</dc:creator>
      <dc:date>2012-07-29T00:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ColdFusion AIM integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28332#M14932</link>
      <description>&lt;P&gt;Follow up post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm setting the value of the list returned by authorize.net as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset api_response=cfhttp.filecontent&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I'm setting a value to the authorization code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfoutput&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset code = #ListGetAt(api_response,1)#&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfif #code# EQ "1"&amp;gt;&lt;/P&gt;&lt;P&gt;The transaction was successful!&lt;/P&gt;&lt;P&gt;&amp;lt;efelse&amp;gt;&lt;/P&gt;&lt;P&gt;The transaction was not successful.&lt;/P&gt;&lt;P&gt;&amp;lt;/cfif&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;/cfoutput&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that it is returning a blank page instead of the right code.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2012 01:42:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28332#M14932</guid>
      <dc:creator>rlichner</dc:creator>
      <dc:date>2012-07-29T01:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: ColdFusion AIM integration</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28336#M14934</link>
      <description>&lt;P&gt;I'm posting this to help anybody else trying to figure this out because the sample code provided leaves a little to be desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out the problem was with the delimiter being returned (not being a comma) and the fact that I was leaving the delimeter field out of the ColdFusion ListGetAt function. The other part of the problem is that there is a lot of lazy sample code posted on the net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what you are looking for...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset api_response = #cfhttp.fileContent#&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfset authcode = #ListGetAt(api_response, "1", "|")#&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--- here you would add additional cfset tags to set the value of other returned info for later processing ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;cfif #authcode# EQ "1"&amp;gt;&lt;/P&gt;&lt;P&gt;Transaction success.&lt;/P&gt;&lt;P&gt;&amp;lt;cfelseif #authcode# EQ "2"&amp;gt;&lt;/P&gt;&lt;P&gt;Transaction declined.&lt;/P&gt;&lt;P&gt;&amp;lt;cfelseif #authcode# EQ "3"&amp;gt;&lt;/P&gt;&lt;P&gt;Transaction error.&lt;/P&gt;&lt;P&gt;&amp;lt;cfelse&amp;gt;&lt;/P&gt;&lt;P&gt;You're having another problem.&lt;/P&gt;&lt;P&gt;&amp;lt;/cfif&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!--- Within that cfif statement you add additional processing of the data based on the data you set values for above. ---&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jul 2012 14:59:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ColdFusion-AIM-integration/m-p/28336#M14934</guid>
      <dc:creator>rlichner</dc:creator>
      <dc:date>2012-07-29T14:59:00Z</dc:date>
    </item>
  </channel>
</rss>

