<?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 AIM PHP - PASS VARIABLE TO RESULTS in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-PASS-VARIABLE-TO-RESULTS/m-p/38463#M21040</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me out. &amp;nbsp;I've been researching this topic for the past few days and can not seem to come up with a reasonalbe answer or solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display a customized results page that includes the TRANSACTION ID and ORDER TOTAL. These 2 variables are being returned from Authorize.net. &amp;nbsp;A SESSION variable is not passing them to my results page, approved.php. &amp;nbsp;Why is this happening? &amp;nbsp;How do I pass them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;PHP file (process.php)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;approved) {&lt;BR /&gt;session_start();&lt;BR /&gt;$_SESSION['&lt;SPAN&gt;trans_id&lt;/SPAN&gt;'] = $response-&amp;gt;transaction_id;&lt;BR /&gt;echo '&amp;lt;script language="Javascript"&amp;gt;';&lt;BR /&gt;echo 'window.location="/approved.php"';&lt;BR /&gt;echo '&amp;lt;/script&amp;gt;';&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo '&amp;lt;script language="Javascript"&amp;gt;';&lt;BR /&gt;echo 'window.location="/declined.html"';&lt;BR /&gt;echo '&amp;lt;/script&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP file (approved.php)&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;session_start();&lt;BR /&gt;$trans_id = $_SESSION['&lt;SPAN&gt;trans_id&lt;/SPAN&gt;'];&lt;BR /&gt;&lt;SPAN style="line-height: 16px;"&gt;echo $trans_id;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;What's happening here? There has got to be a way to display the transaction id on screen on a customized page after processing the transaction, right? Any help is appreicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2014 11:00:56 GMT</pubDate>
    <dc:creator>book2014</dc:creator>
    <dc:date>2014-01-16T11:00:56Z</dc:date>
    <item>
      <title>AIM PHP - PASS VARIABLE TO RESULTS</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-PASS-VARIABLE-TO-RESULTS/m-p/38463#M21040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me out. &amp;nbsp;I've been researching this topic for the past few days and can not seem to come up with a reasonalbe answer or solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display a customized results page that includes the TRANSACTION ID and ORDER TOTAL. These 2 variables are being returned from Authorize.net. &amp;nbsp;A SESSION variable is not passing them to my results page, approved.php. &amp;nbsp;Why is this happening? &amp;nbsp;How do I pass them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;PHP file (process.php)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if ($response-&amp;gt;approved) {&lt;BR /&gt;session_start();&lt;BR /&gt;$_SESSION['&lt;SPAN&gt;trans_id&lt;/SPAN&gt;'] = $response-&amp;gt;transaction_id;&lt;BR /&gt;echo '&amp;lt;script language="Javascript"&amp;gt;';&lt;BR /&gt;echo 'window.location="/approved.php"';&lt;BR /&gt;echo '&amp;lt;/script&amp;gt;';&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo '&amp;lt;script language="Javascript"&amp;gt;';&lt;BR /&gt;echo 'window.location="/declined.html"';&lt;BR /&gt;echo '&amp;lt;/script&amp;gt;';&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP file (approved.php)&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;session_start();&lt;BR /&gt;$trans_id = $_SESSION['&lt;SPAN&gt;trans_id&lt;/SPAN&gt;'];&lt;BR /&gt;&lt;SPAN style="line-height: 16px;"&gt;echo $trans_id;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;?&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;What's happening here? There has got to be a way to display the transaction id on screen on a customized page after processing the transaction, right? Any help is appreicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 11:00:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-PASS-VARIABLE-TO-RESULTS/m-p/38463#M21040</guid>
      <dc:creator>book2014</dc:creator>
      <dc:date>2014-01-16T11:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: AIM PHP - PASS VARIABLE TO RESULTS</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-PASS-VARIABLE-TO-RESULTS/m-p/38503#M21057</link>
      <description>&lt;P&gt;Thanks for all the help! It's good to know there is a dedicated support team over at Authorize.net. After a week of researching and trial and error, I was able to figure out a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a suggestion... You guys need to have a developer on staff, someone who can support your own code and moderate these forums. The phone support techs are only able to cover the basics and then refer us to the PDF's.&lt;BR /&gt;&lt;BR /&gt;Had to store values into database and pass from there.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 07:14:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-PASS-VARIABLE-TO-RESULTS/m-p/38503#M21057</guid>
      <dc:creator>book2014</dc:creator>
      <dc:date>2014-01-18T07:14:23Z</dc:date>
    </item>
  </channel>
</rss>

