<?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 PHP - Retrieving Custom Merchant Defined Fields in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-Retrieving-Custom-Merchant-Defined-Fields/m-p/27310#M14451</link>
    <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: extremely careless mistake: I was using &lt;EM&gt;setCustomField&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;instead of &lt;EM&gt;setCustomField&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2012 17:15:44 GMT</pubDate>
    <dc:creator>js2393</dc:creator>
    <dc:date>2012-06-19T17:15:44Z</dc:date>
    <item>
      <title>AIM PHP - Retrieving Custom Merchant Defined Fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-Retrieving-Custom-Merchant-Defined-Fields/m-p/27306#M14449</link>
      <description>&lt;P&gt;In my code I have defined a custom field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$transaction-&amp;gt;setCustomFields('cart_id', '1');

$response = $transaction-&amp;gt;authorizeAndCapture();

if ($response-&amp;gt;approved) {
  $cart_id = $response-&amp;gt;cart_id;
  //...do stuff with $cart_id
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;However, I get this error suggesting that "$response-&amp;gt;cart_id" is not correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Notice: Undefined property: AuthorizeNetAIM_Response::$cart_id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;How do I retreive the custom fields from the $response object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in the email I receive as a merchant, only cart_id shows up (with no value) despite having defined 3 other custom fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;========== MERCHANT DEFINED =========
0 : cart_id&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 17:10:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-Retrieving-Custom-Merchant-Defined-Fields/m-p/27306#M14449</guid>
      <dc:creator>js2393</dc:creator>
      <dc:date>2012-06-19T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: AIM PHP - Retrieving Custom Merchant Defined Fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-Retrieving-Custom-Merchant-Defined-Fields/m-p/27310#M14451</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: extremely careless mistake: I was using &lt;EM&gt;setCustomField&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;instead of &lt;EM&gt;setCustomField&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2012 17:15:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-Retrieving-Custom-Merchant-Defined-Fields/m-p/27310#M14451</guid>
      <dc:creator>js2393</dc:creator>
      <dc:date>2012-06-19T17:15:44Z</dc:date>
    </item>
  </channel>
</rss>

