<?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: DMP - can't capture response results vars in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34923#M19338</link>
    <description>&lt;P&gt;Well I learned this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $response-&amp;gt;&lt;SPAN&gt;x_first_name&lt;/SPAN&gt;; //does not work&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;echo $response-&amp;gt;&lt;SPAN&gt;first_name&lt;/SPAN&gt;; &amp;nbsp;//does work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that inside the entire &amp;nbsp;AuthorizeNetSIM Object is an array - but need help figuring how to work and display both?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[first_name] =&amp;gt; John&lt;/P&gt;&lt;P&gt;in array....&lt;/P&gt;&lt;P&gt;[x_first_name] =&amp;gt; John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: why are there dupes of these and how do I diaplay both of them?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2013 16:43:21 GMT</pubDate>
    <dc:creator>coolcat</dc:creator>
    <dc:date>2013-07-08T16:43:21Z</dc:date>
    <item>
      <title>DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34919#M19334</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to set up DPM with php from the PDF docs - DirectPost_guide.pdf. I have 3 pages:&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;&lt;BR /&gt;Basically it works - but on the order_receipt.php page the only result param vars that seems to show up are the response_code and transaction_id.&lt;/P&gt;&lt;P&gt;I can display them:&lt;/P&gt;&lt;P&gt;echo $_GET['response_code'];&lt;BR /&gt;echo $_GET['transaction_id'];&lt;/P&gt;&lt;P&gt;But I want to capture other vars like&lt;/P&gt;&lt;P&gt;x_card_type&lt;BR /&gt;x_first_name&lt;BR /&gt;x_last_name&lt;/P&gt;&lt;P&gt;etc…….&lt;/P&gt;&lt;P&gt;Since they are not in the url query string on order_receipt.php I would think I can capture them in my database on this page = relay_response.php&lt;/P&gt;&lt;P&gt;BTW: when I use this = &lt;A href="https://developer.authorize.net/tools/paramdump/index.php" target="_blank"&gt;https://developer.authorize.net/tools/paramdump/index.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see lots of fields and data&lt;BR /&gt;===================&lt;/P&gt;&lt;P&gt;x_response_code 1&lt;BR /&gt;x_response_reason_code 1&lt;BR /&gt;x_response_reason_text This transaction has been approved.&lt;BR /&gt;x_avs_code Y&lt;BR /&gt;x_auth_code 302EGP&lt;/P&gt;&lt;P&gt;x_first_name John&lt;BR /&gt;x_last_name Doe&lt;/P&gt;&lt;P&gt;etc…&lt;/P&gt;&lt;P&gt;but I can't seem to add them to the mysql database from relay_response.php&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Q: HOW AND WHERE can I capture these fields? PLEASE KEEP IT SIMPLE for this newbie...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2013 23:46:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34919#M19334</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-07-07T23:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34920#M19335</link>
      <description>&lt;P&gt;here's the code for the =&amp;nbsp;relay_response.php page...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------- the only field that gets in the database =&amp;nbsp;&lt;SPAN&gt;$response-&amp;gt;transaction_id - the others are blank!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: i DO get an email from AN WITH ALL THE CUSTOMER FIELDS ETC.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: SO HOW DO I CAPTURE THEM IN MY DATABASE?&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;if(!session_id()) session_start();&lt;/P&gt;&lt;P&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK&lt;/P&gt;&lt;P&gt;$redirect_url = "&lt;A href="http://www.mysite.com/store/cart/order_receipt.php&amp;quot;;" target="_blank"&gt;http://www.mysite.com/store/cart/order_receipt.php";&lt;/A&gt;&lt;BR /&gt;$api_login_id = 'xxx';&lt;BR /&gt;$md5_setting = "xxx"; // 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;// Do your processing here.&lt;/P&gt;&lt;P&gt;require_once('connector.php');&lt;/P&gt;&lt;P&gt;$look = 'test'.$response-&amp;gt;transaction_id.'-'.$response-&amp;gt;x_first_name.'-'.$response-&amp;gt;x_last_name.'-'.$response-&amp;gt;x_amount;&lt;/P&gt;&lt;P&gt;$pdo = new PDO("mysql:host=$hostname_weblink;dbname=$database_weblink", $username_weblink, $password_weblink);&lt;/P&gt;&lt;P&gt;$sql = "UPDATE invtest&lt;BR /&gt;SET info1=?&lt;BR /&gt;WHERE id=?";&lt;BR /&gt;$q = $pdo-&amp;gt;prepare($sql);&lt;BR /&gt;$q-&amp;gt;execute(array($look,'1001'));&lt;/P&gt;&lt;P&gt;// end database capture&lt;/P&gt;&lt;P&gt;$redirect_url .= '?response_code=1&amp;amp;transaction_id=' .&lt;BR /&gt;$response-&amp;gt;transaction_id;&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>Mon, 08 Jul 2013 00:21:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34920#M19335</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-07-08T00:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34922#M19337</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&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;ok - when I try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;print_r($response, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i get nothing back - but when I use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;print_r($response);&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;then I get lots!!!! (see below)&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 maybe this newbie does not know how to display the fields correctly via php? if I want to echo&amp;nbsp;&lt;SPAN&gt;transaction_id I write:&lt;/SPAN&gt;&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;echo $response-&amp;gt;transaction_id;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and it show on the page but this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;echo &amp;nbsp;$response-&amp;gt;x_first_name;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DOES NOT SHOW "&lt;SPAN&gt;John&lt;/SPAN&gt;" just empty like many others&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;Q: How can I write this so it will display "&lt;SPAN&gt;John&lt;/SPAN&gt;" on the page? something different from&amp;nbsp;&lt;SPAN&gt;echo &amp;nbsp;$response-&amp;gt;x_first_name; ????&lt;/SPAN&gt;&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;&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;-----------------------&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;&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;AuthorizeNetSIM Object ( [subscription_id] =&amp;gt; [subscription_paynum] =&amp;gt; [approved] =&amp;gt; 1 [declined] =&amp;gt; [error] =&amp;gt; [held] =&amp;gt; [response_code] =&amp;gt; 1 [response_subcode] =&amp;gt; [response_reason_code] =&amp;gt; 1 [response_reason_text] =&amp;gt; This transaction has been approved. [authorization_code] =&amp;gt; DBBLWT [avs_response] =&amp;gt; Y [transaction_id] =&amp;gt; 2195410177 [invoice_number] =&amp;gt; [description] =&amp;gt; [amount] =&amp;gt; 1.01 [method] =&amp;gt; CC [transaction_type] =&amp;gt; [customer_id] =&amp;gt; [first_name] =&amp;gt; John [last_name] =&amp;gt; Doe [company] =&amp;gt; [address] =&amp;gt; 123 Main Street [city] =&amp;gt; Boston [state] =&amp;gt; MA [zip_code] =&amp;gt; [country] =&amp;gt; US [phone] =&amp;gt; [fax] =&amp;gt; [email_address] =&amp;gt; [ship_to_first_name] =&amp;gt; [ship_to_last_name] =&amp;gt; [ship_to_company] =&amp;gt; [ship_to_address] =&amp;gt; [ship_to_city] =&amp;gt; [ship_to_state] =&amp;gt; [ship_to_zip_code] =&amp;gt; [ship_to_country] =&amp;gt; [tax] =&amp;gt; 0.00 [duty] =&amp;gt; 0.00 [freight] =&amp;gt; 0.00 [tax_exempt] =&amp;gt; FALSE [purchase_order_number] =&amp;gt; [md5_hash] =&amp;gt; E0B767AB8FEB72C97A8591E6E533A2B4 [card_code_response] =&amp;gt; P [cavv_response] =&amp;gt; 2 [account_number] =&amp;gt; XXXX0012 [card_type] =&amp;gt; Discover [split_tender_id] =&amp;gt; [requested_amount] =&amp;gt; [balance_on_card] =&amp;gt; [response] =&amp;gt; Array ( [x_response_code] =&amp;gt; 1 [x_response_reason_code] =&amp;gt; 1 [x_response_reason_text] =&amp;gt; This transaction has been approved. [x_avs_code] =&amp;gt; Y [x_auth_code] =&amp;gt; DBBLWT [x_trans_id] =&amp;gt; 2195410177 [x_method] =&amp;gt; CC [x_card_type] =&amp;gt; Discover [x_account_number] =&amp;gt; XXXX0012 [x_first_name] =&amp;gt; John [x_last_name] =&amp;gt; Doe [x_company] =&amp;gt; [x_address] =&amp;gt; 123 Main Street [x_city] =&amp;gt; Boston [x_state] =&amp;gt; MA [x_zip] =&amp;gt; 02142 [x_country] =&amp;gt; US [x_phone] =&amp;gt; [x_fax] =&amp;gt; [x_email] =&amp;gt; [x_invoice_num] =&amp;gt; [x_description] =&amp;gt; [x_type] =&amp;gt; auth_capture [x_cust_id] =&amp;gt; [x_ship_to_first_name] =&amp;gt; [x_ship_to_last_name] =&amp;gt; [x_ship_to_company] =&amp;gt; [x_ship_to_address] =&amp;gt; [x_ship_to_city] =&amp;gt; [x_ship_to_state] =&amp;gt; [x_ship_to_zip] =&amp;gt; [x_ship_to_country] =&amp;gt; [x_amount] =&amp;gt; 1.01 [x_tax] =&amp;gt; 0.00 [x_duty] =&amp;gt; 0.00 [x_freight] =&amp;gt; 0.00 [x_tax_exempt] =&amp;gt; FALSE [x_po_num] =&amp;gt; [x_MD5_Hash] =&amp;gt; E0B767AB8FEB72C97A8591E6E533A2B4 [x_cvv2_resp_code] =&amp;gt; P [x_cavv_response] =&amp;gt; 2 [x_test_request] =&amp;gt; false [x_invidtest3] =&amp;gt; 33 [x_amount999] =&amp;gt; 1.02 [x_invidtest1] =&amp;gt; 61 [x_invidtest2] =&amp;gt; 199 ) [api_login_id] =&amp;gt; 734BRxs69p [md5_setting] =&amp;gt; 1234554321 [avs_code] =&amp;gt; Y [auth_code] =&amp;gt; DBBLWT [trans_id] =&amp;gt; 2195410177 [zip] =&amp;gt; 02142 [email] =&amp;gt; [invoice_num] =&amp;gt; [type] =&amp;gt; auth_capture [cust_id] =&amp;gt; [ship_to_zip] =&amp;gt; [po_num] =&amp;gt; [MD5_Hash] =&amp;gt; E0B767AB8FEB72C97A8591E6E533A2B4 [cvv2_resp_code] =&amp;gt; P [test_request] =&amp;gt; false [invidtest3] =&amp;gt; 33 [amount999] =&amp;gt; 1.02 [invidtest1] =&amp;gt; 61 [invidtest2] =&amp;gt; 199 )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:09:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34922#M19337</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-07-08T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34923#M19338</link>
      <description>&lt;P&gt;Well I learned this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $response-&amp;gt;&lt;SPAN&gt;x_first_name&lt;/SPAN&gt;; //does not work&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;P&gt;echo $response-&amp;gt;&lt;SPAN&gt;first_name&lt;/SPAN&gt;; &amp;nbsp;//does work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that inside the entire &amp;nbsp;AuthorizeNetSIM Object is an array - but need help figuring how to work and display both?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[first_name] =&amp;gt; John&lt;/P&gt;&lt;P&gt;in array....&lt;/P&gt;&lt;P&gt;[x_first_name] =&amp;gt; John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: why are there dupes of these and how do I diaplay both of them?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 16:43:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34923#M19338</guid>
      <dc:creator>coolcat</dc:creator>
      <dc:date>2013-07-08T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34924#M19339</link>
      <description>&lt;P&gt;AuthorizeNetSIM contain both the request and response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in anet_php_sdk-1.1.8.zip\anet_php_sdk\lib\AuthorizeNetSIM.php&lt;/P&gt;&lt;P&gt;class AuthorizeNetSIM extends AuthorizeNetResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$response on the other hand only contain response&lt;/P&gt;&lt;P&gt;anet_php_sdk-1.1.8.zip\anet_php_sdk\lib\shared\AuthorizeNetResponse.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2013 21:15:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34924#M19339</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-07-08T21:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: DMP - can't capture response results vars</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34926#M19341</link>
      <description>&lt;P&gt;print_r($response, TRUE) returns a string representation of $response. If you do not assign it to a variable, it goes nowhere. If you are trying to log to a file, you want to do something like file_put_contents($file_path, print_r($response, TRUE)); Since this is a relay response page, print_r() without the TRUE won't do anything particularly useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://php.net/manual/en/function.print-r.php" target="_blank"&gt;http://php.net/manual/en/function.print-r.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://php.net/manual/en/function.file-put-contents.php" target="_blank"&gt;http://php.net/manual/en/function.file-put-contents.php&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 00:46:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/DMP-can-t-capture-response-results-vars/m-p/34926#M19341</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2013-07-09T00:46:55Z</dc:date>
    </item>
  </channel>
</rss>

