<?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: Retrieving Merchant Defined Fields from $response (DPM + PHP) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieving-Merchant-Defined-Fields-from-response-DPM-PHP/m-p/26990#M14300</link>
    <description>&lt;P&gt;If you look in the AuthorizeNetSIM.php in the php SDK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public function __construct($api_login_id = false, $md5_setting = false)
...
// Set fields without x_ prefix
        foreach ($_POST as $key =&amp;gt; $value) {
            $name = substr($key, 2);
            $this-&amp;gt;$name = $value;
        }
...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I guess you can either add a 2 char prefix or go in and modify the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2012 11:32:43 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2012-06-06T11:32:43Z</dc:date>
    <item>
      <title>Retrieving Merchant Defined Fields from $response (DPM + PHP)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieving-Merchant-Defined-Fields-from-response-DPM-PHP/m-p/26978#M14294</link>
      <description>&lt;P&gt;I have a custom merchant defined field called "sub_type" that is submitted along with the customer's credit card information. In the Merchant Email Receipt, "sub_type" is included under "MERCHANT DEFINED" with the correct value, so I am submitting the field correctly. However, I'm not sure how to retrieve this information in the response object ($response = new AuthorizeNetSIM;) that I get after submitting the payment. I've tried using $response-&amp;gt;sub_type, like I would for $reponse-&amp;gt;first_name, but it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume I am making a simple error, but I'm not sure what it is. Any help would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 02:57:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieving-Merchant-Defined-Fields-from-response-DPM-PHP/m-p/26978#M14294</guid>
      <dc:creator>js2393</dc:creator>
      <dc:date>2012-06-06T02:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Merchant Defined Fields from $response (DPM + PHP)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieving-Merchant-Defined-Fields-from-response-DPM-PHP/m-p/26990#M14300</link>
      <description>&lt;P&gt;If you look in the AuthorizeNetSIM.php in the php SDK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public function __construct($api_login_id = false, $md5_setting = false)
...
// Set fields without x_ prefix
        foreach ($_POST as $key =&amp;gt; $value) {
            $name = substr($key, 2);
            $this-&amp;gt;$name = $value;
        }
...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I guess you can either add a 2 char prefix or go in and modify the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:32:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Retrieving-Merchant-Defined-Fields-from-response-DPM-PHP/m-p/26990#M14300</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-06-06T11:32:43Z</dc:date>
    </item>
  </channel>
</rss>

