<?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: (LART me!) [PHP] $transaction-&amp;gt;amount is null... in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36963#M20517</link>
    <description>&lt;P&gt;To further elaborate, "null" is an understatement. &amp;nbsp;$transaction-&amp;gt;amount is (apparently) not even set.&lt;BR /&gt;&lt;BR /&gt;I'm currently operating under the assumption that the cause of this issue is that the variable is protected inside the AuthorizeNetAIM object.&lt;BR /&gt;&lt;BR /&gt;However, I could swear that the code was working last week with simply "$transaction-&amp;gt;amount = $variable;"&lt;BR /&gt;&lt;BR /&gt;I'm sure I'll knock it, given enough time ... would appreciate any insight, though.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2013 18:01:38 GMT</pubDate>
    <dc:creator>kkinsey</dc:creator>
    <dc:date>2013-11-20T18:01:38Z</dc:date>
    <item>
      <title>(LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36929#M20500</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Had everything working in sandbox, using PHP AIM.&lt;BR /&gt;&lt;BR /&gt;Management decided to give price breaks, so now I have to check a button on the form and assign the transaction amount based on the user input.&lt;BR /&gt;&lt;BR /&gt;For some reason this is breaking:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;$transaction = new AuthorizeNetAIM(API_Login_ID,Transaction_Key);//my test ID and Key
   if (defined(PKG_PRICE)) {
      die("PKG_PRICE is defined...");
      $transaction-&amp;gt;amount = PKG_PRICE;
   } else {
      echo "making a good assignment now...";
      $transaction-&amp;gt;amount = $this_pkg_price;
   }
   echo "the transaction amount is supposed to be $this_pkg_price, but it's coming up as: ";
   echo ($transaction-&amp;gt;amount);exit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;And my output is "making a good assignment now", then "making a good assignment now&lt;BR /&gt;the transaction amount is supposed to be 2950, but it's coming up as: "&lt;BR /&gt;&lt;BR /&gt;$transaction passes is_object(). &amp;nbsp;$this_pkg_price is obviously set.&lt;BR /&gt;&lt;BR /&gt;It's 4 PM here and must be something simple....&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 22:16:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36929#M20500</guid>
      <dc:creator>kkinsey</dc:creator>
      <dc:date>2013-11-19T22:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: (LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36931#M20501</link>
      <description>&lt;P&gt;is null or just your echo is not displaying? why did you have that is a seperated line?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:05:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36931#M20501</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-19T23:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: (LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36943#M20507</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/1353"&gt;@RaynorC1emen7&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;is null or just your echo is not displaying? why did you have that is a seperated line?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Heavy debugging, Raynor.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:28:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36943#M20507</guid>
      <dc:creator>kkinsey</dc:creator>
      <dc:date>2013-11-20T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: (LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36963#M20517</link>
      <description>&lt;P&gt;To further elaborate, "null" is an understatement. &amp;nbsp;$transaction-&amp;gt;amount is (apparently) not even set.&lt;BR /&gt;&lt;BR /&gt;I'm currently operating under the assumption that the cause of this issue is that the variable is protected inside the AuthorizeNetAIM object.&lt;BR /&gt;&lt;BR /&gt;However, I could swear that the code was working last week with simply "$transaction-&amp;gt;amount = $variable;"&lt;BR /&gt;&lt;BR /&gt;I'm sure I'll knock it, given enough time ... would appreciate any insight, though.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:01:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36963#M20517</guid>
      <dc:creator>kkinsey</dc:creator>
      <dc:date>2013-11-20T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: (LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36965#M20518</link>
      <description>&lt;P&gt;are you sure you wasn't using&lt;/P&gt;&lt;P&gt;setFields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;amount isn't it for the response?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2013 19:14:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/36965#M20518</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-20T19:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: (LART me!) [PHP] $transaction-&gt;amount is null...</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/37017#M20544</link>
      <description>&lt;P&gt;Well, not sure why it's not working that way --- like I said, it seemed to have been working before.&lt;BR /&gt;&lt;BR /&gt;As I suspected, though, it does work if we use our own variable as the first arg to the AuthorizeandCapture function:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;$response = $transaction-&amp;gt;authorizeAndCapture($my_special_price_variable);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I can code around that. &amp;nbsp;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 17:48:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/LART-me-PHP-transaction-gt-amount-is-null/m-p/37017#M20544</guid>
      <dc:creator>kkinsey</dc:creator>
      <dc:date>2013-11-21T17:48:59Z</dc:date>
    </item>
  </channel>
</rss>

