<?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: PHP Updating MD5 SIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66636#M40153</link>
    <description>&lt;P&gt;I think from examples you need the second one.&lt;/P&gt;&lt;P&gt;The Hash isn't a requirement, so I would just leave off if you are about to close the website.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 17:41:41 GMT</pubDate>
    <dc:creator>kabutotx</dc:creator>
    <dc:date>2019-02-28T17:41:41Z</dc:date>
    <item>
      <title>PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66620#M40138</link>
      <description>&lt;P&gt;well... let me start by saying I am rusty... I built my wifes website MANY years ago and have not been using PHP for anything since..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically this is what I currently have to handle the response...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require_once 'anet_php_sdk/AuthorizeNet.php'; // The SDK
$redirect_url = "https://sitename.com/shop/receipt.php"; // Where the user will end up.
$api_login_id = 'api_login_code';
$md5_setting = 'api_login_code';

$response = new AuthorizeNetSIM($api_login_id, $md5_setting);

if ($response-&amp;gt;isAuthorizeNet())
{&lt;BR /&gt;$cust_name = "customer_name='" . $response-&amp;gt;first_name . ' ' . $response-&amp;gt;last_name . "'";&lt;BR /&gt;$cust_phn = "customer_phone='" . $response-&amp;gt;phone . "'";&lt;BR /&gt;$cust_email = "customer_email='" . $response-&amp;gt;email . "'";&lt;BR /&gt;$pay_status = "pay_status=" . $response-&amp;gt;response_code;&lt;BR /&gt;$trans_id = "transaction_id='" . $response-&amp;gt;transaction_id . "'";&lt;BR /&gt;$reason_cd = "response_code=" .$response-&amp;gt;response_reason_code;&lt;BR /&gt;$reason_desc = "response_desc='" . $response-&amp;gt;response_reason_text . "'";&lt;BR /&gt;$card_num = "card_num='" . $_POST['x_account_number'] . "'";&lt;BR /&gt;$card_type = "card_type='" . $_POST['x_card_type'] . "'";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;etc....&lt;/PRE&gt;&lt;P&gt;and the database is updated with the response data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the code sample for&amp;nbsp;&lt;STRONG&gt;compute_trans_hashSHA2.php&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but im so cunfused as to where I am using that?&lt;/P&gt;&lt;P&gt;would it be...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$newHash =&amp;nbsp;generateSH512($textToHash, $signatureKey);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$response = new AuthorizeNetSIM($api_login_id, $newHash);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ooorr...? thanks for the help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:40:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66620#M40138</guid>
      <dc:creator>Static_FX</dc:creator>
      <dc:date>2019-02-27T21:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66622#M40140</link>
      <description>&lt;P&gt;I don't think the old sdk supports SHA.&amp;nbsp; I think you just leave md5_setting blank or unset and it will skip the MD5 check.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 22:21:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66622#M40140</guid>
      <dc:creator>kabutotx</dc:creator>
      <dc:date>2019-02-27T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66623#M40141</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28822"&gt;@Static_FX&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be back on later tonight or tomorrow. I have code that is tested and works. The file you posted uses a class that I am not familiar with. If you opt to use my code you may have to write a new script. I do not use DPM/SIM but have helped several here that do. I finally decided to test it myself last night and set up a SIM form. DPM uses the same hashing method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I can get you a head start. See my post "Working php hash verfication". The 2nd code example I posted there will work for the SIM/DPM fingerprint, except the string has an extra ^ at the beginning. The fingerprint is more important than the verification.&amp;nbsp; Also see the post called something like "No sha512 in silent post response" that I recently commented on.&amp;nbsp; &amp;nbsp;It has the correct string and the correct 30 fields to use.&amp;nbsp; I'll see where you are next time I'm on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you use a separate file for your silent post url, separate from the file that pulls up the hosted form?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 22:27:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66623#M40141</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-02-27T22:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66628#M40146</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/18439"&gt;@kabutotx&lt;/a&gt;&amp;nbsp;... so just&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;$response = new AuthorizeNetSIM($api_login_id);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;$response = new AuthorizeNetSIM($api_login_id, '');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26959"&gt;@Renaissance&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I think my fingerprint file is fine as its not actually using the md5 anywhere...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;$fp = AuthorizeNetDPM::getFingerprint($api_login_id, $transaction_key, $total, $fp_sequence, $time);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;the timing is the worst.. my wife is acutally closing her business about mid April lol.. could they have waited 1 more month!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 13:13:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66628#M40146</guid>
      <dc:creator>Static_FX</dc:creator>
      <dc:date>2019-02-28T13:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66636#M40153</link>
      <description>&lt;P&gt;I think from examples you need the second one.&lt;/P&gt;&lt;P&gt;The Hash isn't a requirement, so I would just leave off if you are about to close the website.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:41:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66636#M40153</guid>
      <dc:creator>kabutotx</dc:creator>
      <dc:date>2019-02-28T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Updating MD5 SIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66794#M40300</link>
      <description>&lt;P&gt;shoot.. doesnt work. Errors in the response&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 00:15:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-Updating-MD5-SIM/m-p/66794#M40300</guid>
      <dc:creator>Static_FX</dc:creator>
      <dc:date>2019-03-07T00:15:32Z</dc:date>
    </item>
  </channel>
</rss>

