<?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: Direct Post Method with Php causing problems in test environment in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35639#M19901</link>
    <description>&lt;P&gt;&amp;nbsp;So what can i do?&lt;/P&gt;&lt;P&gt;It is not possible to configure authorize.net with localhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2013 14:11:29 GMT</pubDate>
    <dc:creator>jawad_ch_88</dc:creator>
    <dc:date>2013-09-12T14:11:29Z</dc:date>
    <item>
      <title>Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35627#M19895</link>
      <description>&lt;P&gt;I have using test account in order check my code and transactions.&lt;/P&gt;&lt;P&gt;I am using local server for thos purpose i am using xampp package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have designed all required files and did whatever the page&amp;nbsp;&lt;A href="http://developer.authorize.net/integration/fifteenminutes/#directpost" target="_blank"&gt;http://developer.authorize.net/integration/fifteenminutes/#directpost&lt;/A&gt;&amp;nbsp; &amp;nbsp; said...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i got ERROR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read out the prevoius posts but got nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i have opened by relay_response.php file it will show:&amp;nbsp;&lt;SPAN&gt;Error. Check your MD5 Setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i opened checkout_form file it give ERROR below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This transaction has been approved.&lt;BR /&gt;&lt;P&gt;It is advisable for you to contact the merchant to verify that you will receive the product or service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i also set my MD5 hash key to and use its value in my file but it doesnot works.&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;[relay_response.php]&lt;/P&gt;&lt;P&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK&lt;BR /&gt;$redirect_url = "http://localhost/authorize/order_receipt.php"; // Where the user will end up.&lt;BR /&gt;$api_login_id = 'x';&lt;BR /&gt;$md5_setting = 'y'; // 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;BR /&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;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.............................................................................&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[checkout_form.php]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?php require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK&lt;BR /&gt;$relay_response_url = "http://localhost/authorize/relay_response.php"; // You will create this file in Step 7.&lt;BR /&gt;$api_login_id = 'x';&lt;BR /&gt;$transaction_key = 'z';&lt;BR /&gt;$amount = "400";&lt;BR /&gt;$fp_sequence = "1230088"; // Any sequential number like an invoice number.&lt;BR /&gt;echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $relay_response_url,$api_login_id, $transaction_key);?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.............................................&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[order_reciept.php]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;if ($_GET['response_code'] == 1)&lt;BR /&gt;{&lt;BR /&gt;echo "Thank you for your purchase! Transaction id: "&lt;BR /&gt;.htmlentities($_GET['transaction_id']);}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo "Sorry, an error occurred: " . htmlentities($_GET['response_reason_text']);&lt;BR /&gt;}?&amp;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;please help me out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there need to configure relay_response URL /response URL from merchant account?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it is so, then how can i give URL ,if i am using xampp.. i dont have any URl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 10:13:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35627#M19895</guid>
      <dc:creator>jawad_ch_88</dc:creator>
      <dc:date>2013-09-12T10:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35629#M19896</link>
      <description>&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-and-Troubleshooting/ba-p/9536" target="_self"&gt;Relay Response Basics and Troubleshooting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basicially relay response can't response to your localhost.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 11:50:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35629#M19896</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-09-12T11:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35633#M19898</link>
      <description>&lt;P&gt;This link doesnot describes how to set URL in merchant account.what to write and process to solve the problem.&lt;/P&gt;&lt;P&gt;kindly help me out&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:06:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35633#M19898</guid>
      <dc:creator>jawad_ch_88</dc:creator>
      <dc:date>2013-09-12T13:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35637#M19900</link>
      <description>&lt;P&gt;The problem is that localhost is not internet accessible.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 13:23:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35637#M19900</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-09-12T13:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35639#M19901</link>
      <description>&lt;P&gt;&amp;nbsp;So what can i do?&lt;/P&gt;&lt;P&gt;It is not possible to configure authorize.net with localhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:11:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35639#M19901</guid>
      <dc:creator>jawad_ch_88</dc:creator>
      <dc:date>2013-09-12T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post Method with Php causing problems in test environment</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35641#M19902</link>
      <description>&lt;P&gt;Nope. Not unless you have a domain name where authorize.net can access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you can fake it for a test, just like this example.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.johnconde.net/blog/all-about-authorize-nets-silent-post/" target="_blank"&gt;http://www.johnconde.net/blog/all-about-authorize-nets-silent-post/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:35:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-Method-with-Php-causing-problems-in-test-environment/m-p/35641#M19902</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-09-12T14:35:24Z</dc:date>
    </item>
  </channel>
</rss>

