<?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: DPM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM/m-p/20647#M11305</link>
    <description>&lt;P&gt;DPM does not work the same way. With DPM, only a response code and transaction ID is going to be passed to the receipt page via $_GET if you're using the sample code, and you have to use the Transaction Details API with the transaction ID if you want to look up the transaction info for output there. If, on the other hand, all you want to do is update your database on a successful transaction, the relay response page DOES receive everything. Here's the sample code from the DPM PDF, with the notes expanded to show where you'd add your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK 
$redirect_url = "&lt;A target="_blank" href="http://YOUR_DOMAIN.com/receipt_page.php"&gt;http://YOUR_DOMAIN.com/receipt_page.php&lt;/A&gt;"; // 
Where the user 
will end up. 
$api_login_id = 'YOUR_API_LOGIN_ID'; 
$md5_setting = ""; // Your MD5 Setting 
$response = new AuthorizeNetSIM($api_login_id, $md5_setting); 
if ($response-&amp;gt;isAuthorizeNet()) 
{ 
if ($response-&amp;gt;approved) 
   { 
       // Update your database to store any transaction info you might want to access later
       // Or if you already have the transaction, mark the transaction as completed
       // All data is in $response&lt;BR /&gt;       $redirect_url .= '?response_code=1&amp;amp;transaction_id=' . 
       $response-&amp;gt;transaction_id; 
   } 
   else 
   {
       $redirect_url .= '?response_code='.$response-&amp;gt;response_ 
code . 
'&amp;amp;response_reason_text=' . $response-&amp;gt;response_reason_text; 
   } 
   // Send the Javascript back to AuthorizeNet, which will 
redirect user back to 
your site. 
   echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_ 
url); 
} 
else 
{ 
echo "Error. Check your MD5 Setting."; 
} ?&amp;gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2011 00:49:51 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-12-28T00:49:51Z</dc:date>
    <item>
      <title>DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM/m-p/20643#M11303</link>
      <description>&lt;P&gt;How do I get the&amp;nbsp;x_trans_id and x_method, when the transaction is complete? &amp;nbsp;I've tried capturing it with $_POST as with SIM or AIM, but it does not get either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 23:00:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM/m-p/20643#M11303</guid>
      <dc:creator>joescarpetta</dc:creator>
      <dc:date>2011-12-27T23:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: DPM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM/m-p/20647#M11305</link>
      <description>&lt;P&gt;DPM does not work the same way. With DPM, only a response code and transaction ID is going to be passed to the receipt page via $_GET if you're using the sample code, and you have to use the Transaction Details API with the transaction ID if you want to look up the transaction info for output there. If, on the other hand, all you want to do is update your database on a successful transaction, the relay response page DOES receive everything. Here's the sample code from the DPM PDF, with the notes expanded to show where you'd add your code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK 
$redirect_url = "&lt;A target="_blank" href="http://YOUR_DOMAIN.com/receipt_page.php"&gt;http://YOUR_DOMAIN.com/receipt_page.php&lt;/A&gt;"; // 
Where the user 
will end up. 
$api_login_id = 'YOUR_API_LOGIN_ID'; 
$md5_setting = ""; // Your MD5 Setting 
$response = new AuthorizeNetSIM($api_login_id, $md5_setting); 
if ($response-&amp;gt;isAuthorizeNet()) 
{ 
if ($response-&amp;gt;approved) 
   { 
       // Update your database to store any transaction info you might want to access later
       // Or if you already have the transaction, mark the transaction as completed
       // All data is in $response&lt;BR /&gt;       $redirect_url .= '?response_code=1&amp;amp;transaction_id=' . 
       $response-&amp;gt;transaction_id; 
   } 
   else 
   {
       $redirect_url .= '?response_code='.$response-&amp;gt;response_ 
code . 
'&amp;amp;response_reason_text=' . $response-&amp;gt;response_reason_text; 
   } 
   // Send the Javascript back to AuthorizeNet, which will 
redirect user back to 
your site. 
   echo AuthorizeNetDPM::getRelayResponseSnippet($redirect_ 
url); 
} 
else 
{ 
echo "Error. Check your MD5 Setting."; 
} ?&amp;gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 00:49:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DPM/m-p/20647#M11305</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-28T00:49:51Z</dc:date>
    </item>
  </channel>
</rss>

