<?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: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66204#M39774</link>
    <description>&lt;P&gt;Hi Dev Support,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont' see any support for my problem. Can you help?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 03:03:53 GMT</pubDate>
    <dc:creator>HuyenNguyen</dc:creator>
    <dc:date>2019-02-01T03:03:53Z</dc:date>
    <item>
      <title>Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65807#M39422</link>
      <description>&lt;P&gt;In an attempt to upgrade from MD5 to&amp;nbsp;&lt;SPAN&gt;SHA-512 based transHashSHA2 I have created a test transaction using my sandbox account and have used the c# sample code to verify the output of the hash matches the x_SHA2_Hash that comes back in the silent post back for the transaction, but I have not been able to generate a matching hash.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Steps followed from upgrade guide:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Step 1.&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://support.authorize.net/s/article/What-is-a-Signature-Key" target="_blank"&gt;Generate a Signature Key&lt;/A&gt;&amp;nbsp;and store it in a secure location on your serve&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Step 2.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Convert the Signature Key into a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/byte" target="_blank"&gt;byte array&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Step 3.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Create a message string that starts with a caret ("^"), followed by the following three fields delimited by carets, and terminated with another caret:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;•&amp;nbsp; &amp;nbsp; The API Login ID that you send in&amp;nbsp;&lt;STRONG&gt;createTransactionRequest&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;element.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;•&amp;nbsp; &amp;nbsp;&amp;nbsp;The transaction ID that we send in&amp;nbsp;&lt;STRONG&gt;createTransactionResponse&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;transId&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;element.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;•&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The transaction amount that we send in&amp;nbsp;&lt;STRONG&gt;createTransactionResponse&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;amount&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;element.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;For example, if your API Login ID is "ANet123", the value of&amp;nbsp;&lt;STRONG&gt;transId&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is "20987654321", and the value of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;amount&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is "9.99", the message string would look like this:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;^ANet123^20987654321^9.99^&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Step 4.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Use HMAC-SHA512 to hash the byte array form of the Signature Key from Step 2 with the message string from Step 3.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Step 5.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Compare the value of&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;transHashSHA2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with the output from the HMAC-SHA512 hash mentioned in Step 4.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;&lt;FONT size="2"&gt;If my signature key is "828BB6EDE1959" and my API login ID is ABC123, my transaction id is 0 (because test transactions do not have a trans id in the sandbox), and the amount of the payment was $75.00 using the sample code provided in the upgrade guide I could pass in the value generated in step 3 "^ABC123^0^75.00^" and my signature key in to&amp;nbsp;&lt;STRONG&gt;HMACSHA512("828BB6EDE1959", "^ABC123^0^75.00^")&amp;nbsp;&lt;/STRONG&gt;and my output should match the&amp;nbsp;underlined value below, correct?&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;Array
(
    [x_response_code] =&amp;gt; 1
    [x_response_reason_code] =&amp;gt; 1
    [x_response_reason_text] =&amp;gt; (TESTMODE) This transaction has been approved.
    [x_avs_code] =&amp;gt; P
    [x_auth_code] =&amp;gt; 000000
    [x_trans_id] =&amp;gt; 0
    [x_method] =&amp;gt; CC
    [x_card_type] =&amp;gt; Visa
    [x_account_number] =&amp;gt; XXXX1111
    [x_first_name] =&amp;gt; 
    [x_last_name] =&amp;gt; 
    [x_company] =&amp;gt; 
    [x_address] =&amp;gt; 
    [x_city] =&amp;gt; 
    [x_state] =&amp;gt; 
    [x_zip] =&amp;gt; 
    [x_country] =&amp;gt; 
    [x_phone] =&amp;gt; 
    [x_fax] =&amp;gt; 
    [x_email] =&amp;gt; 
    [x_invoice_num] =&amp;gt; 237
    [x_description] =&amp;gt; 
    [x_type] =&amp;gt; auth_capture
    [x_cust_id] =&amp;gt; GPE6178NY
    [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; 75.00
    [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; C13380CAE7E8D7DB47BEAEDE98A5867A
    &lt;U&gt;[x_SHA2_Hash] =&amp;gt; &lt;/U&gt;&lt;/SPAN&gt;&lt;U&gt;3732810865C43409F22EB2078D3C292FB284A5AAF587F8E091E93D97672F874EDAC7D3D526324E204EA6EFA2506E831FE3BEE7FB6D78113A3F2757C58EAEF0BB&lt;/U&gt;&lt;SPAN&gt;    [x_cvv2_resp_code] =&amp;gt; 
    [x_cavv_response] =&amp;gt; 
    [x_test_request] =&amp;gt; true
    [signature_key] =&amp;gt; 828BB6EDE1959
    [ref1type1] =&amp;gt; 
    [ref1val1] =&amp;gt; l
    [payment_type] =&amp;gt; AUTHORIZE_NET
    [email] =&amp;gt; 
)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 19:23:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65807#M39422</guid>
      <dc:creator>Alicia05</dc:creator>
      <dc:date>2019-01-16T19:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65810#M39425</link>
      <description>&lt;P&gt;Who the&amp;nbsp;fck knows at this point. Even the Admins dont understand their own software.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the parameter I've been using. It's&amp;nbsp;the same length as it should be. The old MD5 is much shorter. I'm at the point where I am brute forcing in a loop different methods until I get what matches in the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far no combination of encodings, algorithms, or hashes are working for me..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my test mode off though so I do get a transaction ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has literally been my whole day, at work, just GUESSING at how their API works when they could just fcking tell us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where did that admin go that came in and ignored all of us and answered that stupid question&amp;nbsp;only one person cared about?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:09:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65810#M39425</guid>
      <dc:creator>lightwave365</dc:creator>
      <dc:date>2019-01-16T20:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65813#M39427</link>
      <description>&lt;P&gt;I tried this out and it works for me:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SIM Guidebook&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.authorize.net/content/dam/authorize/documents/SIM_guide.pdf#page=73" target="_blank"&gt;https://www.authorize.net/content/dam/authorize/documents/SIM_guide.pdf&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Page 73&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The message format in the upgrade guide is wrong it says to hash 3 values, what works is hashing the 30 values in the guide book.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^x_trans_id^x_test_request^x_response_code^x_auth_code^x_cvv2_resp_code^x_cavv_response^x_avs_code^x_method^x_account_number^x_amount^x_company^x_first_name^x_last_name^x_address^x_city^x_state^x_zip^x_country^x_phone^x_fax^x_email^x_ship_to_company^x_ship_to_first_name^x_ship_to_last_name^x_ship_to_address^x_ship_to_city^x_ship_to_state^x_ship_to_zip^x_ship_to_country^x_invoice_num^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:04:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65813#M39427</guid>
      <dc:creator>Alicia05</dc:creator>
      <dc:date>2019-01-16T22:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65814#M39428</link>
      <description>&lt;P&gt;I've been working on this since Monday, I am SO far behind on work now.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:14:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65814#M39428</guid>
      <dc:creator>Alicia05</dc:creator>
      <dc:date>2019-01-16T20:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65815#M39429</link>
      <description>&lt;P&gt;See I'm using that 30&amp;nbsp;values hash and it's still not matching. What language are you doing this in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you post&amp;nbsp;your code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;[2019-01-16 15:40:21,407] [ERROR] HASH FROM AUTHNET: [ADFF7886B744A98CD885C6A4C9CCB86883D6CFF56C906D1DAB7ECA2CA6BA0D881B21724074CD0E12D742F2CF2364A2C1D25B1F2F0B4B134ACFEF9A6160D1E894]&lt;BR /&gt; &lt;/SPAN&gt;&lt;BR /&gt;[2019-01-16 15:40:21,409] [DEBUG] Attempting to hash string [^40024018324^false^1^29TOL3^P^2^Y^CC^XXXX2222^0.20^^^^^^^^^^^^^^^^^^^^^] with SecretKey [BF99E1A8A726AD3789D4E15F6041F65F8438055880DFE7DBF4B82819B0355BF815E425202397F3FF78A4D2BD6F8DC3998168D294A3416C0C00DA399A1203052A] with Algorithm [HmacSHA512] 
[2019-01-16 15:40:21,409] [ERROR] 

Encoding [ASCII] Algorithm [HmacSHA512] Hash[^40024018324^false^1^29TOL3^P^2^Y^CC^XXXX2222^0.20^^^^^^^^^^^^^^^^^^^^^]
Result: [F420E686C636534A1CB1494F6EB3B2C036F4B986ADE8F09D01C86B46FB84F589CB99041726084A6ED182D7F1BDE4B2B110FD05F4C3A2153903EBC72238679C97]

&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:45:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65815#M39429</guid>
      <dc:creator>lightwave365</dc:creator>
      <dc:date>2019-01-16T20:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65819#M39433</link>
      <description>&lt;P&gt;The link to the SIM guide resolves to 404.&lt;BR /&gt;&lt;BR /&gt;I tried hashing the 30 values but not getting the correct match.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, what should be&amp;nbsp;including&amp;nbsp;intead of&amp;nbsp; "x_fp_hash" in the POST call to redirect to Hosted payment page?&amp;nbsp; &amp;nbsp;or should we still be sending "x_fp_hash" value but HmacSHA512 instead of HmacMD5 using the same format&amp;nbsp; :&amp;nbsp;x_login^x_fp_sequence^x_fp_timestamp^x_amount^&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:57:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65819#M39433</guid>
      <dc:creator>Manu</dc:creator>
      <dc:date>2019-01-16T21:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65821#M39435</link>
      <description>&lt;P&gt;The guide is back. There must be so many people resorting to a deprecated guide because the&amp;nbsp;staff are useless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But just in case, save the PDF to your desktop.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:08:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65821#M39435</guid>
      <dc:creator>lightwave365</dc:creator>
      <dc:date>2019-01-16T22:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65826#M39440</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13861"&gt;@lightwave365&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28144"&gt;@Alicia05&lt;/a&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28146"&gt;@Manu&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We edited the post to removed some extra characters in the URL and added a link to #page=73&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 01:08:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65826#M39440</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2019-01-17T01:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65837#M39451</link>
      <description>&lt;P&gt;What post?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What link?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain what you exactly changed instead of just saying "I changed something, go find it"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Page 73 of the SIM guide still looks the same and says last edited in September 2017.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 14:25:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65837#M39451</guid>
      <dc:creator>lightwave365</dc:creator>
      <dc:date>2019-01-17T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65838#M39452</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/13861"&gt;@lightwave365&lt;/a&gt;&amp;nbsp;PHP&lt;/P&gt;&lt;PRE&gt;&amp;lt;?PHP

//Step 1. Generate a Signature Key and store it in a secure location on your server.
$key = '1111111';

//Step 2. Convert the Signature Key into a byte array.
$key = hex2bin($key);

//Step 3. Create a message string that starts with a caret ("^"), followed by the following three fields delimited by carets, and terminated with another caret:
//•    The API Login ID that you send in createTransactionRequest in the name element.
//•    The transaction ID that we send in createTransactionResponse in the transId element.
//•    The transaction amount that we send in createTransactionResponse in the amount element.
// Ref to page #73 SIM Guidebook ^x_trans_id^x_test_request^x_response_code^x_auth_code^x_cvv2_resp_code^x_cavv_response^x_avs_code^x_method^x_account_number^x_amount^x_company^x_first_name^x_last_name^x_address^x_city^x_state^x_zip^x_country^x_phone^x_fax^x_email^x_ship_to_company^x_ship_to_first_name^x_ship_to_last_name^x_ship_to_address^x_ship_to_city^x_ship_to_state^x_ship_to_zip^x_ship_to_country^x_invoice_num^
//EX: ^0^true^1^000000^^^P^CC^XXXX1111^75.00^^^^^^^^^^^^^^^^^^^^237^
$message .= '^' .
                $_REQUEST('x_trans_id') . '^' .
                $_REQUEST('x_test_request') . '^' .
                $_REQUEST('x_response_code') . '^' .
                $_REQUEST('x_auth_code') . '^' .
                $_REQUEST('x_cvv2_resp_code') . '^' .
                $_REQUEST('x_cavv_response') . '^' .
                $_REQUEST('x_avs_code') . '^' .
                $_REQUEST('x_method') . '^' .
                $_REQUEST('x_account_number') . '^' .
                $_REQUEST('x_amount') . '^' .
                $_REQUEST('x_company') . '^' .
                $_REQUEST('x_first_name') . '^' .
                $_REQUEST('x_last_name') . '^' .
                $_REQUEST('x_address') . '^' .
                $_REQUEST('x_city') . '^' .
                $_REQUEST('x_state') . '^' .
                $_REQUEST('x_zip') . '^' .
                $_REQUEST('x_country') . '^' .
                $_REQUEST('x_phone') . '^' .
                $_REQUEST('x_fax') . '^' .
                $_REQUEST('x_email') . '^' .
                $_REQUEST('x_ship_to_company') . '^' .
                $_REQUEST('x_ship_to_first_name') . '^' .
                $_REQUEST('x_ship_to_last_name') . '^' .
                $_REQUEST('x_ship_to_address') . '^' .
                $_REQUEST('x_ship_to_city') . '^' .
                $_REQUEST('x_ship_to_state') . '^' .
                $_REQUEST('x_ship_to_zip') . '^' .
                $_REQUEST('x_ship_to_country') . '^' .
                $_REQUEST('x_invoice_num') . '^';
   
//Step 4. Use HMAC-SHA512 to hash the byte array form of the Signature Key from Step 2 with the message string from Step 3.
$hashed_value = strtoupper(hash_hmac('sha512',$message, $new_key));

//Step 5. Compare the value of transHashSHA2 with the output from the HMAC-SHA512 hash mentioned in Step 4.
if(strtoupper($_REQUEST('x_SHA2_Hash')) != strtoupper(hash_hmac("sha512", $signature_key_hash, hex2bin($signature_key))))&lt;/PRE&gt;&lt;P&gt;For the FP:&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28146"&gt;@Manu&lt;/a&gt;&lt;/P&gt;&lt;PRE&gt;protected function CalculateFP($x_login, $x_amount, $x_fp_sequence, $x_fp_timestamp, $x_currency_code = "", $signature_key)
    {
        $data_to_hash = $x_login . "^" . $x_fp_sequence . "^" . $x_fp_timestamp . "^" . $x_amount . "^" . $x_currency_code;
        return hash_hmac('sha512', $data_to_hash, hex2bin($signature_key));
    }&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Jan 2019 14:42:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65838#M39452</guid>
      <dc:creator>Alicia05</dc:creator>
      <dc:date>2019-01-17T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65859#M39471</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/28144"&gt;@Alicia05&lt;/a&gt;.&lt;BR /&gt;&lt;BR /&gt;I am successfully abled to create a valid fingerprint.&lt;BR /&gt;&lt;BR /&gt;But x_SHA2_Hash in the response still not matching the one I am generating even though I refer to Page 73 to create a $messageToHash with 30 values separated by "^".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please do a favor and test if your shas512Hash value is matching the one I am generating using the signature key and messageToHash below:&lt;BR /&gt;&lt;BR /&gt;$signatureKey = "9C5A4D2AFE1D1D5DB3A8FC4C95CDCF49E2B052B4220D0624C54C1C662194BDEF8FE0EA27B313FA62328D9500D123B9DD3CE06644508803ACD04DAEDB24C5D122";&lt;BR /&gt;&lt;BR /&gt;$messageToHash = "^0^false^3^^^^P^^^1.99^^^^^^^^^^^^^^^^^^^^^";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Hmac SHA-512 hash value I am gettings is:&lt;BR /&gt;$hmacSHA512Hash = "4038397293CE5DBBFD5AD21B2F96FF5B6E32EA9F56D310AA95D1D091EBEAD1C35FE5AF96111D7911B2816FCE0DBA2D41A5BD268F766183DC8F3B750B22F68E16";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 21:06:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/65859#M39471</guid>
      <dc:creator>Manu</dc:creator>
      <dc:date>2019-01-17T21:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66171#M39749</link>
      <description>&lt;P&gt;I can't verify your sha with 2 tickets:&lt;/P&gt;&lt;P&gt;1. &lt;A href="https://developer.authorize.net/support/hash_upgrade/" target="_blank"&gt;https://developer.authorize.net/support/hash_upgrade/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://support.authorize.net/s/article/MD5-Hash-End-of-Life-Signature-Key-Replacement?utm_campaign=19Q2+MD5+Hash+EOL+Developer&amp;amp;utm_medium=email&amp;amp;utm_source=Eloqua" target="_blank"&gt;https://support.authorize.net/s/article/MD5-Hash-End-of-Life-Signature-Key-Replacement?utm_campaign=19Q2+MD5+Hash+EOL+Developer&amp;amp;utm_medium=email&amp;amp;utm_source=Eloqua&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a silent post:&lt;/P&gt;&lt;P&gt;$_POST=array (&lt;BR /&gt;'x_response_code' =&amp;gt; '1',&lt;BR /&gt;'x_response_reason_code' =&amp;gt; '1',&lt;BR /&gt;'x_response_reason_text' =&amp;gt; 'This transaction has been approved.',&lt;BR /&gt;'x_avs_code' =&amp;gt; 'Y',&lt;BR /&gt;'x_auth_code' =&amp;gt; 'Q835SS',&lt;BR /&gt;'x_trans_id' =&amp;gt; '40024516943',&lt;BR /&gt;'x_method' =&amp;gt; 'CC',&lt;BR /&gt;'x_card_type' =&amp;gt; 'Visa',&lt;BR /&gt;'x_account_number' =&amp;gt; 'XXXX1111',&lt;BR /&gt;'x_first_name' =&amp;gt; 'Phuong',&lt;BR /&gt;'x_last_name' =&amp;gt; 'Nguyen',&lt;BR /&gt;'x_company' =&amp;gt; '',&lt;BR /&gt;'x_address' =&amp;gt; '123 Main Street',&lt;BR /&gt;'x_city' =&amp;gt; 'Springfield',&lt;BR /&gt;'x_state' =&amp;gt; 'IL',&lt;BR /&gt;'x_zip' =&amp;gt; '60012',&lt;BR /&gt;'x_country' =&amp;gt; 'US',&lt;BR /&gt;'x_phone' =&amp;gt; '',&lt;BR /&gt;'x_fax' =&amp;gt; '',&lt;BR /&gt;'x_email' =&amp;gt; '',&lt;BR /&gt;'x_invoice_num' =&amp;gt; '',&lt;BR /&gt;'x_description' =&amp;gt; '',&lt;BR /&gt;'x_type' =&amp;gt; 'auth_capture',&lt;BR /&gt;'x_cust_id' =&amp;gt; '11281',&lt;BR /&gt;'x_ship_to_first_name' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_last_name' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_company' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_address' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_city' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_state' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_zip' =&amp;gt; '',&lt;BR /&gt;'x_ship_to_country' =&amp;gt; '',&lt;BR /&gt;'x_amount' =&amp;gt; '199.00',&lt;BR /&gt;'x_tax' =&amp;gt; '0.00',&lt;BR /&gt;'x_duty' =&amp;gt; '0.00',&lt;BR /&gt;'x_freight' =&amp;gt; '0.00',&lt;BR /&gt;'x_tax_exempt' =&amp;gt; 'FALSE',&lt;BR /&gt;'x_po_num' =&amp;gt; '',&lt;BR /&gt;'x_MD5_Hash' =&amp;gt; '44239291E7A6D292C83360138503A159',&lt;BR /&gt;'x_SHA2_Hash' =&amp;gt; '780F3D60E752D83D811CD2600E7D316B074EFC31C16AF22F64A44814483E465BA36C037CF006C166D5D1AADF0C0BDD711C509ACB9C49060791F900691E01E08E',&lt;BR /&gt;'x_cvv2_resp_code' =&amp;gt; 'P',&lt;BR /&gt;'x_cavv_response' =&amp;gt; '2',&lt;BR /&gt;'x_test_request' =&amp;gt; 'false',&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;2019/01/29 09:47:47 [info] [payment] [3hk07t692o82c700nmjmopehf0][Guest][] array&lt;BR /&gt;(&lt;BR /&gt;'x_response_code' =&amp;gt; '1'&lt;BR /&gt;'x_response_reason_code' =&amp;gt; '1'&lt;BR /&gt;'x_response_reason_text' =&amp;gt; 'This transaction has been approved.'&lt;BR /&gt;'x_avs_code' =&amp;gt; 'Y'&lt;BR /&gt;'x_auth_code' =&amp;gt; 'Q835SS'&lt;BR /&gt;'x_trans_id' =&amp;gt; '40024516943'&lt;BR /&gt;'x_method' =&amp;gt; 'CC'&lt;BR /&gt;'x_card_type' =&amp;gt; 'Visa'&lt;BR /&gt;'x_account_number' =&amp;gt; 'XXXX1111'&lt;BR /&gt;'x_first_name' =&amp;gt; 'Phuong'&lt;BR /&gt;'x_last_name' =&amp;gt; 'Nguyen'&lt;BR /&gt;'x_company' =&amp;gt; ''&lt;BR /&gt;'x_address' =&amp;gt; '123 Main Street'&lt;BR /&gt;'x_city' =&amp;gt; 'Springfield'&lt;BR /&gt;'x_state' =&amp;gt; 'IL'&lt;BR /&gt;'x_zip' =&amp;gt; '60012'&lt;BR /&gt;'x_country' =&amp;gt; 'US'&lt;BR /&gt;'x_phone' =&amp;gt; ''&lt;BR /&gt;'x_fax' =&amp;gt; ''&lt;BR /&gt;'x_email' =&amp;gt; ''&lt;BR /&gt;'x_invoice_num' =&amp;gt; ''&lt;BR /&gt;'x_description' =&amp;gt; ''&lt;BR /&gt;'x_type' =&amp;gt; 'auth_capture'&lt;BR /&gt;'x_cust_id' =&amp;gt; '11281'&lt;BR /&gt;'x_ship_to_first_name' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_last_name' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_company' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_address' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_city' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_state' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_zip' =&amp;gt; ''&lt;BR /&gt;'x_ship_to_country' =&amp;gt; ''&lt;BR /&gt;'x_amount' =&amp;gt; '199.00'&lt;BR /&gt;'x_tax' =&amp;gt; '0.00'&lt;BR /&gt;'x_duty' =&amp;gt; '0.00'&lt;BR /&gt;'x_freight' =&amp;gt; '0.00'&lt;BR /&gt;'x_tax_exempt' =&amp;gt; 'FALSE'&lt;BR /&gt;'x_po_num' =&amp;gt; ''&lt;BR /&gt;'x_MD5_Hash' =&amp;gt; '44239291E7A6D292C83360138503A159'&lt;BR /&gt;'x_SHA2_Hash' =&amp;gt; '780F3D60E752D83D811CD2600E7D316B074EFC31C16AF22F64A44814483E465BA36C037CF006C166D5D1AADF0C0BDD711C509ACB9C49060791F900691E01E08E'&lt;BR /&gt;'x_cvv2_resp_code' =&amp;gt; 'P'&lt;BR /&gt;'x_cavv_response' =&amp;gt; '2'&lt;BR /&gt;'x_test_request' =&amp;gt; 'false'&lt;BR /&gt;)&lt;BR /&gt;Here is my code:&lt;/P&gt;&lt;P&gt;- For verify at #1: 079F5B818BCBF7287DF241BEFAD592D26D8580115086A831F786225EFF02FF0F9B22DBC755F38C39D56B3DAD0A18E447F26469776747B998D7DE651C6E9D5068&lt;/P&gt;&lt;P&gt;$string = '^'.AUTHORIZENET_API_LOGIN_ID.'^'.$_POST['x_trans_id'].'^'.$_POST['x_amount'].'^';&lt;/P&gt;&lt;P&gt;$signatureKey = Yii::app()-&amp;gt;params['anet_hash'];&lt;BR /&gt;$signatureKey = hex2bin($signatureKey);&lt;/P&gt;&lt;P&gt;$digest = strtoupper(hash_hmac('sha512',$string,$signatureKey));&lt;BR /&gt;return hash_equals($digest,$hash);&lt;/P&gt;&lt;P&gt;- For verify at #2:&lt;BR /&gt;$arrayHash = [&lt;BR /&gt;$_POST['x_trans_id'],&lt;BR /&gt;$_POST['x_test_request'],&lt;BR /&gt;$_POST['x_response_code '],&lt;BR /&gt;$_POST['x_auth_code'],&lt;BR /&gt;$_POST['x_cvv2_resp_code'],&lt;BR /&gt;$_POST['x_cavv_response'],&lt;BR /&gt;$_POST['x_avs_code'],&lt;BR /&gt;$_POST['x_method'],&lt;BR /&gt;$_POST['x_account_number'],&lt;BR /&gt;$_POST['x_amount'],&lt;BR /&gt;$_POST['x_company'],&lt;BR /&gt;$_POST['x_first_name'],&lt;BR /&gt;$_POST['x_last_name'],&lt;BR /&gt;$_POST['x_address'],&lt;BR /&gt;$_POST['x_city'],&lt;BR /&gt;$_POST['x_state'],&lt;BR /&gt;$_POST['x_zip'],&lt;BR /&gt;$_POST['x_country'],&lt;BR /&gt;$_POST['x_phone'],&lt;BR /&gt;$_POST['x_fax'],&lt;BR /&gt;$_POST['x_email'],&lt;BR /&gt;$_POST['x_ship_to_company'],&lt;BR /&gt;$_POST['x_ship_to_first_name'],&lt;BR /&gt;$_POST['x_ship_to_last_name'],&lt;BR /&gt;$_POST['x_ship_to_address'],&lt;BR /&gt;$_POST['x_ship_to_city'],&lt;BR /&gt;$_POST['x_ship_to_state'],&lt;BR /&gt;$_POST['x_ship_to_zip'],&lt;BR /&gt;$_POST['x_ship_to_country'],&lt;BR /&gt;$_POST['x_invoice_num'],&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;$string = '^'.implode('^', $arrayHash).'^';&lt;/P&gt;&lt;P&gt;$signatureKey = Yii::app()-&amp;gt;params['anet_hash'];&lt;BR /&gt;$signatureKey = hex2bin($signatureKey);&lt;/P&gt;&lt;P&gt;$digest = strtoupper(hash_hmac('sha512',$string,$signatureKey));&lt;BR /&gt;return hash_equals($digest,$hash);&lt;/P&gt;&lt;P&gt;==&amp;gt; result for my sha: 5873397FD4FBAEAB591B6CE3A3BADEBE2997A07583AD4742674C77602685F8D30ECF86931323543CA1B2AB49F18CE4B898CD5B07DA1406903B686CD08AB2DD03&lt;/P&gt;&lt;P&gt;Could you help me? Many thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 05:13:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66171#M39749</guid>
      <dc:creator>HuyenNguyen</dc:creator>
      <dc:date>2019-01-30T05:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66204#M39774</link>
      <description>&lt;P&gt;Hi Dev Support,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont' see any support for my problem. Can you help?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 03:03:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66204#M39774</guid>
      <dc:creator>HuyenNguyen</dc:creator>
      <dc:date>2019-02-01T03:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Transaction Hash Upgrade Guide x_SHA2_Hash does not match output from sample code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66595#M40114</link>
      <description>&lt;P&gt;If you are using SIM/AIM etc API it uses a different fingerprint than the current API.&lt;/P&gt;&lt;P&gt;SIM uses "x_login^x_fp_sequence^x_fp_timestamp^x_amount^"&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 04:25:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Transaction-Hash-Upgrade-Guide-x-SHA2-Hash-does-not-match/m-p/66595#M40114</guid>
      <dc:creator>kabutotx</dc:creator>
      <dc:date>2019-02-27T04:25:17Z</dc:date>
    </item>
  </channel>
</rss>

