<?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: Verifying Webhook signature depends on authAmount in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88339#M55659</link>
    <description>&lt;P&gt;Three days have already passed since my post was created. Does somebody have a solution?&lt;/P&gt;&lt;P&gt;Are auth.net developers reading this community forum?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2023 12:00:23 GMT</pubDate>
    <dc:creator>sera_nikulin</dc:creator>
    <dc:date>2023-12-15T12:00:23Z</dc:date>
    <item>
      <title>Verifying Webhook signature depends on authAmount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88297#M55628</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I found a strange situation where the signature is valid or invalid depending on the amount.&lt;BR /&gt;Briefly: if authAmount in returned webhook body in format #.## (example 1.01 or 2.01) - then verifying signature is success&lt;BR /&gt;If authAmount has format *.# or * (example 1.1 or 2) - then verifying signature is failed.&lt;/P&gt;&lt;P&gt;Here is my example of webhook with amount 1.1&lt;/P&gt;&lt;P&gt;Sandbox environtment (live mode)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My signature key:&lt;/STRONG&gt;&lt;BR /&gt;A6214F6105625D5ED957CF02E749BB440DBD4E418533D219CAD26AECD104BFFE7F47DBBE5C81927CCA484AE7722BE82CE57FB5318EDE02122277A2FE90EE68EB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Webhook notification's body:&lt;/STRONG&gt;&lt;BR /&gt;{"notificationId":"570f7282-687a-42b7-903b-48e487d7694d","eventType":"net.authorize.payment.authcapture.created","eventDate":"2023-12-12T12:45:09.3492643Z","webhookId":"a585ea29-a370-495a-bd83-f9be7160f260","payload":{"responseCode":1,"avsResponse":"P","authAmount":1.1,"merchantReferenceId":"2M4zHFzshYBudvgIZ11B","entityName":"transaction","id":"120011377052"}}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My local hash result:&lt;/STRONG&gt;&lt;BR /&gt;sha512=0B031880F04DD8D6C98F06A234032575B19393716F7FCE84C62D4901F257D29808DF520CEFCD0225FE4374697769B6A2ED336B463031EA861C73F3396357A605&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x-anet-signature:&lt;/STRONG&gt;&lt;BR /&gt;sha512=8E3D41B0191A9A1E668FB729F350B73C6BBB81D676070FE7CFF001CA2543ABA91BD16A4374A0F6FA4542659728C7DAF79D7EC901FEC582FC2DA3263A2D604DCF&lt;/P&gt;&lt;P&gt;As you see result hash is different.&lt;BR /&gt;But if I manually change in body from &lt;STRONG&gt;"authAmount":1.1&lt;/STRONG&gt; to &lt;STRONG&gt;"authAmount":1.10&lt;/STRONG&gt; (&lt;FONT color="#FF0000"&gt;this is not what the client side should do&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;then hash will be&lt;BR /&gt;sha512=8E3D41B0191A9A1E668FB729F350B73C6BBB81D676070FE7CFF001CA2543ABA91BD16A4374A0F6FA4542659728C7DAF79D7EC901FEC582FC2DA3263A2D604DCF&lt;/P&gt;&lt;P&gt;whish is equals to x-anet-signature header.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could anyone help with this situation?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 13:13:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88297#M55628</guid>
      <dc:creator>sera_nikulin</dc:creator>
      <dc:date>2023-12-12T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Verifying Webhook signature depends on authAmount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88299#M55630</link>
      <description>&lt;P&gt;I can manually change request body to able to have valid signature but this contradicts the principles of verifying data integrity based on signature&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 13:33:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88299#M55630</guid>
      <dc:creator>sera_nikulin</dc:creator>
      <dc:date>2023-12-12T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Verifying Webhook signature depends on authAmount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88339#M55659</link>
      <description>&lt;P&gt;Three days have already passed since my post was created. Does somebody have a solution?&lt;/P&gt;&lt;P&gt;Are auth.net developers reading this community forum?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 12:00:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Verifying-Webhook-signature-depends-on-authAmount/m-p/88339#M55659</guid>
      <dc:creator>sera_nikulin</dc:creator>
      <dc:date>2023-12-15T12:00:23Z</dc:date>
    </item>
  </channel>
</rss>

