<?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: Newbie just starting with DPM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34298#M18775</link>
    <description>&lt;P&gt;I see no sample code for DPM here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/downloads/samplecode/" target="_blank"&gt;http://developer.authorize.net/downloads/samplecode/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point a link to&lt;SPAN&gt;&amp;nbsp;sample code for DPM?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 14:19:18 GMT</pubDate>
    <dc:creator>coolcat</dc:creator>
    <dc:date>2013-05-21T14:19:18Z</dc:date>
    <item>
      <title>Newbie just starting with DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34294#M18772</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... Just getting started with DPM and found the 3 page process here..&lt;/P&gt;&lt;P&gt;checkout_form.php&lt;BR /&gt;relay_response.php&lt;BR /&gt;order_receipt.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Trans_response.html" target="_blank"&gt;http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Trans_response.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the &amp;nbsp;-&amp;nbsp;Fields in the Payment Gateway Response...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Trans_response.html" target="_blank"&gt;http://developer.authorize.net/guides/DPM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Trans_response.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO - My question is it seems that the&amp;nbsp;&lt;SPAN&gt;Fields in the Payment Gateway Response happen on the&amp;nbsp;&lt;SPAN&gt;relay_response.php page - and my goal is to capture them and add to my database but....&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1 - are they really on this page? - it is instantly redirected so it seems hard to display them here for the customer and/or add to the database...?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;2 - can we get them to show on the final page =&amp;nbsp;&lt;SPAN&gt;order_receipt.php?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;3 - what is the best way to&amp;nbsp;&lt;SPAN&gt;capture them to add to the database?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 03:00:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34294#M18772</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-05-21T03:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie just starting with DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34298#M18775</link>
      <description>&lt;P&gt;I see no sample code for DPM here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/downloads/samplecode/" target="_blank"&gt;http://developer.authorize.net/downloads/samplecode/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point a link to&lt;SPAN&gt;&amp;nbsp;sample code for DPM?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 14:19:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34298#M18775</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-05-21T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie just starting with DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34299#M18776</link>
      <description>&lt;P&gt;Also I tried adding some session variables to capture the responses but they didn't seem to work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Ideas how to capture&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the responses?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also - the example uses =&amp;nbsp;&lt;SPAN&gt;$response = new AuthorizeNetSIM($api_login_id, $md5_setting);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is this SIM correct or should it be DPM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK&lt;BR /&gt;$redirect_url = "&lt;A href="http://111.com/order_receipt.php" target="_blank"&gt;http://111.com/order_receipt.php&lt;/A&gt;"; // Where the user will end up.&lt;BR /&gt;$api_login_id = '111';&lt;BR /&gt;$md5_setting = "111"; // Your MD5 Setting&lt;BR /&gt;$response = new AuthorizeNetSIM($api_login_id, $md5_setting);&lt;BR /&gt;if ($response-&amp;gt;isAuthorizeNet())&lt;BR /&gt;{&lt;BR /&gt;if ($response-&amp;gt;approved)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;//test - these NOT WORKING&lt;BR /&gt;if(!session_id()) session_start();&lt;BR /&gt;&lt;BR /&gt;$_SESSION['1'] = $response-&amp;gt;transaction_id;&lt;BR /&gt;$_SESSION['2'] = $response-&amp;gt;x_response_code;&lt;BR /&gt;$_SESSION['3'] = $response-&amp;gt;x_amount;&lt;/P&gt;&lt;P&gt;// Do your processing here.&lt;BR /&gt;$redirect_url .= '?response_code=1&amp;amp;transaction_id=' .&lt;BR /&gt;$response-&amp;gt;transaction_id.'&amp;amp;yum='.$response-&amp;gt;x_response_code.'&amp;amp;amt='.$response-&amp;gt;x_amount;&lt;BR /&gt;//$response-&amp;gt;transaction_id; x_amount&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;$redirect_url .= '?response_code='.$response-&amp;gt;response_code .&lt;BR /&gt;'&amp;amp;response_reason_text=' . $response-&amp;gt;response_reason_text;&lt;BR /&gt;}&lt;BR /&gt;// Send the Javascript back to AuthorizeNet, which will redirect user back to your site.&lt;BR /&gt;echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_url);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo "Error. Check your MD5 Setting.";&lt;BR /&gt;}?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 14:26:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34299#M18776</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-05-21T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie just starting with DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34305#M18782</link>
      <description>&lt;P&gt;The best examples of sample code for DPM are not on this site, they're in the DPM documentation PDF in the code sections at the end.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.authorize.net/support/DirectPost_guide.pdf" target="_blank"&gt;http://www.authorize.net/support/DirectPost_guide.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, Authorize.net is hitting your relay response page, not the customer, so setting session variables for Authorize.net won't cause the information to be saved for the customer. What you need to do is either put the bits you want to display at the end into the receipt URL, or save them to your database under some randomly generated ID and then pass the ID so you know what record to look up.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 17:49:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34305#M18782</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2013-05-21T17:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie just starting with DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34312#M18788</link>
      <description>&lt;P&gt;First, Thanks for your help TJPride!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the newbie questions..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q1 - so &lt;SPAN&gt;but what you are saying is:&lt;/SPAN&gt;&amp;nbsp;there are 3 pages and the important 2nd page = relay_response.php is going to Authorize.net and is not working on my servers so any vars - even session vars will not show up on MySite - correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q2 - Also, at present the only field data is in the _GET&amp;nbsp; url of the the order_receipt.php?response_code=1&amp;amp;transaction_id=xxxxx - correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q3 : &lt;STRONG&gt;My Goal&lt;/STRONG&gt;&amp;nbsp;: is really to add a number of Response fields (page 43 and 44 of the DPM pdf you mentioned) to my database for further processing.... so how exactly can I get to them using DPM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Q4 : Do I need to 'turn them on' in a control panel somewhere?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: I tried adding them to redirect url on &lt;SPAN&gt;&amp;nbsp;relay_response.php&lt;/SPAN&gt;&amp;nbsp;but they didn't come back like ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$redirect_url .= '?response_code=1&amp;amp;transaction_id=' .$response-&amp;gt;transaction_id.'&amp;amp;code='.$response-&amp;gt;x_response_code.'&amp;amp;amt='.$response-&amp;gt;x_amount; ---- and I want to add more...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 23:02:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Newbie-just-starting-with-DPM/m-p/34312#M18788</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-05-21T23:02:12Z</dc:date>
    </item>
  </channel>
</rss>

