<?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 Generating Signature hash issue in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Generating-Signature-hash-issue/m-p/89291#M56267</link>
    <description>&lt;P&gt;For some reason, I'm getting "Authorization Failed" error when trying to do simple integration with Cybersource REST using the HTTP Signature method. It looks like I have issue in generating the Signature hash. With the example below in C#.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;paramdate = "Sat, 04 May 2024 12:49:49 GMT";
Digest = "SHA-256=LDtgqvifUua0IfbA4ZzNpk7xI588HH299/Cp5NT0XzA=";
SecretKey = "0TJqiAKWKxdfyTQb++Qjt9Zw//S7b/lxB0FiLfDO8v8=";
merchantID = "gosignmeup_1714463309";&lt;/LI-CODE&gt;&lt;P&gt;signature string&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var SignatureParm = "host: apitest.cybersource.com\nv-c-date: Sat, 04 May 2024 12:49:49 GMT\n(request-target): post /pts/v2/payments/\ndigest: SHA-256=LDtgqvifUua0IfbA4ZzNpk7xI588HH299/Cp5NT0XzA=\nv-c-merchant-id: gosignmeup_1714463309";&lt;/LI-CODE&gt;&lt;P&gt;generating hash&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var SignatureHash = GenerateSignatureFromParams(SignatureParm, SecretKey); //using C# function from Cybersource Demo&lt;/LI-CODE&gt;&lt;P&gt;I would get this SignatureHash = "UPGZw6z5J0zy9/ogchmv23qTWT7lf0mmpCkhCKKUPaw=" instead of the hash "&lt;SPAN&gt;5dCGDaAK2AqSpr1KPPKYqZfQAKkidsMfJsddOr7zjJg="&amp;nbsp;&lt;/SPAN&gt;generated by Cybersource online Dev Test using same info above.&lt;BR /&gt;&lt;BR /&gt;Am I missing anything? Any thought?&lt;/P&gt;</description>
    <pubDate>Sat, 04 May 2024 13:26:13 GMT</pubDate>
    <dc:creator>ph0ngvu</dc:creator>
    <dc:date>2024-05-04T13:26:13Z</dc:date>
    <item>
      <title>Generating Signature hash issue</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Generating-Signature-hash-issue/m-p/89291#M56267</link>
      <description>&lt;P&gt;For some reason, I'm getting "Authorization Failed" error when trying to do simple integration with Cybersource REST using the HTTP Signature method. It looks like I have issue in generating the Signature hash. With the example below in C#.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;paramdate = "Sat, 04 May 2024 12:49:49 GMT";
Digest = "SHA-256=LDtgqvifUua0IfbA4ZzNpk7xI588HH299/Cp5NT0XzA=";
SecretKey = "0TJqiAKWKxdfyTQb++Qjt9Zw//S7b/lxB0FiLfDO8v8=";
merchantID = "gosignmeup_1714463309";&lt;/LI-CODE&gt;&lt;P&gt;signature string&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var SignatureParm = "host: apitest.cybersource.com\nv-c-date: Sat, 04 May 2024 12:49:49 GMT\n(request-target): post /pts/v2/payments/\ndigest: SHA-256=LDtgqvifUua0IfbA4ZzNpk7xI588HH299/Cp5NT0XzA=\nv-c-merchant-id: gosignmeup_1714463309";&lt;/LI-CODE&gt;&lt;P&gt;generating hash&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var SignatureHash = GenerateSignatureFromParams(SignatureParm, SecretKey); //using C# function from Cybersource Demo&lt;/LI-CODE&gt;&lt;P&gt;I would get this SignatureHash = "UPGZw6z5J0zy9/ogchmv23qTWT7lf0mmpCkhCKKUPaw=" instead of the hash "&lt;SPAN&gt;5dCGDaAK2AqSpr1KPPKYqZfQAKkidsMfJsddOr7zjJg="&amp;nbsp;&lt;/SPAN&gt;generated by Cybersource online Dev Test using same info above.&lt;BR /&gt;&lt;BR /&gt;Am I missing anything? Any thought?&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 13:26:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Generating-Signature-hash-issue/m-p/89291#M56267</guid>
      <dc:creator>ph0ngvu</dc:creator>
      <dc:date>2024-05-04T13:26:13Z</dc:date>
    </item>
  </channel>
</rss>

