<?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 Stuck in the early stages - Direct Post Method (DPM) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Stuck-in-the-early-stages-Direct-Post-Method-DPM/m-p/39227#M21396</link>
    <description>&lt;P&gt;I went through all the sample code, etc and i'm obviously missing something, so I apologize in advance for htis question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my site doesn't have ssl I'm using the&amp;nbsp;&lt;A target="_blank" href="http://developer.authorize.net/api/dpm/"&gt;Direct Post Method (DPM)&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a simple php site where users add items ot their cart, enter the shipping addres and land on a review page where they see the shipping tax, grand total. Using the sample code I found for DPM it looks like all I can do is pass the amount of the transaction - &amp;nbsp;what I need to do is pass all the order info so I can send a confirmation email and add the info to our order database. It's fine if it's all added to the querystring, but I can't figure out how to add extra variables to the form. Currently I get this url response :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;www...com/direct_post.php?response_code=1&amp;amp;transaction_id=2206872712&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what I'd like to have is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;www...com/direct_post.php?response_code=1&amp;amp;transaction_id=2206872712&amp;amp;orderid=123&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;so I can reference the pending order in the database&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;Or if there's another method I should use I'm all ears.&amp;nbsp;&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;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2014 19:09:18 GMT</pubDate>
    <dc:creator>RalphSimmons1</dc:creator>
    <dc:date>2014-02-18T19:09:18Z</dc:date>
    <item>
      <title>Stuck in the early stages - Direct Post Method (DPM)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Stuck-in-the-early-stages-Direct-Post-Method-DPM/m-p/39227#M21396</link>
      <description>&lt;P&gt;I went through all the sample code, etc and i'm obviously missing something, so I apologize in advance for htis question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my site doesn't have ssl I'm using the&amp;nbsp;&lt;A target="_blank" href="http://developer.authorize.net/api/dpm/"&gt;Direct Post Method (DPM)&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a simple php site where users add items ot their cart, enter the shipping addres and land on a review page where they see the shipping tax, grand total. Using the sample code I found for DPM it looks like all I can do is pass the amount of the transaction - &amp;nbsp;what I need to do is pass all the order info so I can send a confirmation email and add the info to our order database. It's fine if it's all added to the querystring, but I can't figure out how to add extra variables to the form. Currently I get this url response :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;www...com/direct_post.php?response_code=1&amp;amp;transaction_id=2206872712&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and what I'd like to have is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;www...com/direct_post.php?response_code=1&amp;amp;transaction_id=2206872712&amp;amp;orderid=123&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;so I can reference the pending order in the database&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;Or if there's another method I should use I'm all ears.&amp;nbsp;&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;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:09:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Stuck-in-the-early-stages-Direct-Post-Method-DPM/m-p/39227#M21396</guid>
      <dc:creator>RalphSimmons1</dc:creator>
      <dc:date>2014-02-18T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck in the early stages - Direct Post Method (DPM)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Stuck-in-the-early-stages-Direct-Post-Method-DPM/m-p/39231#M21398</link>
      <description>&lt;P&gt;Also, how do I get real customer info to populate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is all the code I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK&lt;BR /&gt;$url = "&lt;A target="_blank" href="http://YOUR_DOMAIN.com/direct_post.php&amp;quot;;"&gt;http://YOUR_DOMAIN.com/direct_post.php";&lt;/A&gt;&lt;BR /&gt;$api_login_id = 'YOUR_API_LOGIN_ID';&lt;BR /&gt;$transaction_key = 'YOUR_TRANSACTION_KEY';&lt;BR /&gt;$md5_setting = 'YOUR_API_LOGIN_ID'; // Your MD5 Setting&lt;BR /&gt;$amount = "5.99";&lt;BR /&gt;AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it adds defaults for name, address cc number, etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure tihs is very basic and I've overlooked somethign obvious, but I'm racking my brain trying to find the answer... Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:54:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Stuck-in-the-early-stages-Direct-Post-Method-DPM/m-p/39231#M21398</guid>
      <dc:creator>RalphSimmons1</dc:creator>
      <dc:date>2014-02-18T19:54:24Z</dc:date>
    </item>
  </channel>
</rss>

