<?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: Reading Back Merchant Defined Fields in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59077#M33678</link>
    <description>&lt;P&gt;Thank you VERY MUCH!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was exactly what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 20:04:32 GMT</pubDate>
    <dc:creator>jaybenoit</dc:creator>
    <dc:date>2017-07-31T20:04:32Z</dc:date>
    <item>
      <title>Reading Back Merchant Defined Fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59008#M33609</link>
      <description>&lt;P&gt;New to the community and tried searching for teh answer, but I am lost and hoping to get some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the sample code so far and got everything working as needed in my project ALTHOUGH I am trying to find out how to display&amp;nbsp;the merchant defined field once hte transaction is submited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is how I setup my merchant defined field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$merchantDefinedField1 = new AnetAPI\UserFieldType();&lt;BR /&gt;$merchantDefinedField1-&amp;gt;setName("MerchantID");&lt;BR /&gt;$merchantDefinedField1-&amp;gt;setValue("$merchid");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now using the sample code with the php sdk I am able to get the response back and everything works good BUT need to know how to display the merchant defined field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of the code where I am getting the response and displaying info. If someone can help me and tell me how to then display the "MerchantID" custom field I woudl be VERY MUCH appreciative.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;			    // Create the controller and get the response
			    $controller = new AnetController\CreateTransactionController($request);
			    $response = $controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX);
			    

			    if ($response != null) {

			        // Check to see if the API request was successfully received and acted upon
			        if ($response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok") {
			            // Since the API request was successful, look for a transaction response
			            // and parse it to display the results of authorizing the card
			            $tresponse = $response-&amp;gt;getTransactionResponse();
			        
			            if ($tresponse != null &amp;amp;&amp;amp; $tresponse-&amp;gt;getMessages() != null) {
			                echo " Successfully Created Transaction With Transaction ID: " . $tresponse-&amp;gt;getTransId() . "&amp;lt;br&amp;gt;";
			                echo " Transaction Response Code: " . $tresponse-&amp;gt;getResponseCode() . "&amp;lt;br&amp;gt;";
			                echo " Message Code: " . $tresponse-&amp;gt;getMessages()[0]-&amp;gt;getCode() . "&amp;lt;br&amp;gt;";
			                echo " Authorization Code: " . $tresponse-&amp;gt;getAuthCode() . "&amp;lt;br&amp;gt;";
			                echo " Status: &amp;lt;b&amp;gt;" . $tresponse-&amp;gt;getMessages()[0]-&amp;gt;getDescription() . "&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;";&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:02:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59008#M33609</guid>
      <dc:creator>jaybenoit</dc:creator>
      <dc:date>2017-07-27T18:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Back Merchant Defined Fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59068#M33669</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22092"&gt;@jaybenoit&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Questions-about-Response-object/m-p/58515" target="_self"&gt;This previous thread&lt;/A&gt; has a sample of a foreach loop to iterate through the response and pull the merchant fields out. If that's not making sense to you, let me know, and we'll walk through it together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 17:13:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59068#M33669</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-31T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Back Merchant Defined Fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59077#M33678</link>
      <description>&lt;P&gt;Thank you VERY MUCH!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was exactly what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 20:04:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Reading-Back-Merchant-Defined-Fields/m-p/59077#M33678</guid>
      <dc:creator>jaybenoit</dc:creator>
      <dc:date>2017-07-31T20:04:32Z</dc:date>
    </item>
  </channel>
</rss>

