<?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: IS THIS HASH CORRECT SHA512 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68016#M41303</link>
    <description>&lt;P&gt;Renaissance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I wonder why&amp;nbsp; I keep getting 99 response code from authorize.net instead of payment page?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas of things I could check&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 11:22:52 GMT</pubDate>
    <dc:creator>jmd804500</dc:creator>
    <dc:date>2019-06-13T11:22:52Z</dc:date>
    <item>
      <title>IS THIS HASH CORRECT SHA512</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68002#M41289</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; [^^TRUE^^^^^^CC^^122.50^^Kenneth^Hammond^800 Shoreline Rd ^Kernes^TX^75144^US&lt;BR /&gt;A^903 574 4957^^maggtex@aol.com^^^^^^^^^33:39073:71870^]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;SIG KEY&lt;/STRONG&gt; [312DB4F3973FA6BDE46ACB84E563FE6DD03AECFA26DBEADF231D8B322CBA66FD7CB&lt;BR /&gt;EB8031F9EA621152718235C7FB060C4A44EE6F03F3C70A3107554CC332430]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GENERATED HASH:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;SHA512&lt;/STRONG&gt; [1D1123B59416D611DB6CFACC6FF262A7906BC35C1D7C307559940C9A11D30FCE7B9&lt;BR /&gt;DD10CC5FBA23E3EBAF86875495B559D9C060E54A9A7FC060F54C81D863307]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;function hmac ($data)
    {
        //---------------------------------------------------
        // compute
        // Uses PHP mhash extension. Please be sure to enable the extension
        //---------------------------------------------------
        if($this-&amp;gt;DEBUG){ $this-&amp;gt;logEvent("INFO: HMAC DATA [".$data."]");}
                //-----------------------------------------------------------
                //GET KEY FROM TABLE authorize_net
                //-----------------------------------------------------------
                $anobj = new authorize_net($this-&amp;gt;test_or_prod); //TEST=1 PROD=2
                //-----------------------------------------------------------
                //
                //-----------------------------------------------------------
                $nkey = $anobj-&amp;gt;get_field('signature_key');
                if($this-&amp;gt;DEBUG){ $this-&amp;gt;logEvent("INFO: HMAC SIG KEY [".$nkey."]");}
                if ($data != null &amp;amp;&amp;amp; $nkey != null)
                {
                    $sig = hash_hmac('SHA512', $data, hex2bin($nkey));
                    if($this-&amp;gt;DEBUG)
                    {
                        $this-&amp;gt;logEvent("INFO: Computed SHA512 Hash: " . $sig);
                     }
                     return($sig);
                }
                else
                {
                    $this-&amp;gt;logEvent("ERROR: SIG KEY[".$nkey."]");
                    $this-&amp;gt;logEvent("ERROR: DATA   [".$data."]");
                    return(null);
                }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 20:47:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68002#M41289</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-06-12T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: IS THIS HASH CORRECT SHA512</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68013#M41300</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/29063"&gt;@jmd804500&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 06:33:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68013#M41300</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-06-13T06:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: IS THIS HASH CORRECT SHA512</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68016#M41303</link>
      <description>&lt;P&gt;Renaissance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I wonder why&amp;nbsp; I keep getting 99 response code from authorize.net instead of payment page?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas of things I could check&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 11:22:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68016#M41303</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-06-13T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: IS THIS HASH CORRECT SHA512</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68017#M41304</link>
      <description>&lt;P&gt;Maybe I have misunderstood the model here,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I post a request to the SIM server with the SHA512 hash do I create the hash with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(491)-INFO: loginid [5kBLZFWp34N8]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(492)-INFO: sequence[39076]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(493)-INFO: tstamp &amp;nbsp;[1560427287]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(494)-INFO: amount &amp;nbsp;[122.50]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(495)-INFO: currency[USD]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cc_authorize-&amp;gt;CalculateFP(496)-INFO: data &amp;nbsp;&amp;nbsp;&amp;nbsp;[5kBLZFWp34N8^39076^1560427287^122.50^USD]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Generating&amp;nbsp;x_fp_hash[&amp;nbsp;592f5f13f1af02431333d35d7a833a14d01a592b2c7194ab62c35114209de7d902&lt;BR /&gt;38f5840e3c5a003dd1d1d0bfcebe3759db3b4e1ff8697ed4f7f415de7dfd1f ]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SIG KEY [&amp;nbsp;&lt;SPAN&gt;312DB4F3973FA6BDE46ACB84E563FE6DD03AECFA26DBEADF231D8B322CBA66FD7CBEB8031F&lt;BR /&gt;9EA621152718235C7FB060C4A44EE6F03F3C70A3107554CC332430 ]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then in my x_relay_url I check with it with the decoding of the fields outlined on page 73 of the SIM manual?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I do the above I get:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following errors have occurred.&lt;BR /&gt;(99) This transaction cannot be accepted.&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;&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;</description>
      <pubDate>Thu, 13 Jun 2019 12:11:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68017#M41304</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-06-13T12:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: IS THIS HASH CORRECT SHA512</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68018#M41305</link>
      <description>&lt;P&gt;Solution Found:&lt;/P&gt;&lt;P&gt;The code in this post was correct. The issue was when we generate the Finger Print and then submit the form, the form was missing x_currency_cod='USD'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This requirement was hidden really well in the docs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to those who helped resolve this issue&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 13:57:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/IS-THIS-HASH-CORRECT-SHA512/m-p/68018#M41305</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-06-13T13:57:22Z</dc:date>
    </item>
  </channel>
</rss>

