<?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: webhooks with multiple auth.net accounts- in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60566#M35091</link>
    <description>&lt;P&gt;Thanks, this could work, but the downside is I need to try each one of my Signature keys and hash with the response untill I find one that matches the&amp;nbsp;X-Anet-Signature.&amp;nbsp; Though I do have a small set of keys, so it should be acceptable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Fri, 17 Nov 2017 22:18:48 GMT</pubDate>
    <dc:creator>sandboxAuthNetT</dc:creator>
    <dc:date>2017-11-17T22:18:48Z</dc:date>
    <item>
      <title>webhooks with multiple auth.net accounts-</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60545#M35070</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a website that I need to send payments to 2 different&amp;nbsp;&lt;SPAN&gt;merchant accounts, this is based on what account the current user belongs to, example user1 sales&amp;nbsp;go to store #1 Auth.net account, and user 2 sales go to store#2 auth.net account.&amp;nbsp; The order is sent with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;getHostedPaymentPageRequest(); at this time I know what auth.net account I am sending the payment to.&amp;nbsp; The issues comes when I register a webook&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have an endpoint listening on ....PaymentNotification\PaymentEvent and I recieve the callback however&amp;nbsp;to know more about that order I need to call&amp;nbsp;getTransactionDetailsRequest(), however&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I dont know what store credentials I need to pass to get more details about the transaction.&amp;nbsp; I attempted to add a peramter on the webhook url(PaymentNotification\PaymentEvent?id=1) but it is invalid.&amp;nbsp; I could make a webhook callback for each store but I dont want to do this for (N) stores. How can I know who the transaction belongs to before I make the&amp;nbsp;getTransactionDetailsRequest()?&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, 16 Nov 2017 21:23:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60545#M35070</guid>
      <dc:creator>sandboxAuthNetT</dc:creator>
      <dc:date>2017-11-16T21:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: webhooks with multiple auth.net accounts-</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60548#M35073</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you dont want to have a different webhook callback url then another workaround is to use the&amp;nbsp;hash&amp;nbsp; verification to check which merchant it belongs to .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The hash is sent in a custom header: X-ANET-Signature along with the webhook . &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Using the signature key, the body can be hashed again using the same algorithm. The calculated hash should match the hash sent in the header.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html#Verifying_the_Notification" target="_blank"&gt;https://developer.authorize.net/api/reference/features/webhooks.html#Verifying_the_Notification&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 06:30:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60548#M35073</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2017-11-17T06:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: webhooks with multiple auth.net accounts-</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60566#M35091</link>
      <description>&lt;P&gt;Thanks, this could work, but the downside is I need to try each one of my Signature keys and hash with the response untill I find one that matches the&amp;nbsp;X-Anet-Signature.&amp;nbsp; Though I do have a small set of keys, so it should be acceptable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Fri, 17 Nov 2017 22:18:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60566#M35091</guid>
      <dc:creator>sandboxAuthNetT</dc:creator>
      <dc:date>2017-11-17T22:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: webhooks with multiple auth.net accounts-</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60580#M35104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22667"&gt;@sandboxAuthNetT&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to clarify, you can definitely have multiple listener URLs, it's just the parameter syntax (with a "?") that's not allowed. It would be perfectly fine to have a listener that's &lt;A href="https://yourserver.com/webhooks/merchant1/PaymentEvent" target="_blank"&gt;https://yourserver.com/webhooks/merchant1/PaymentEvent&lt;/A&gt; and a&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://yourserver.com/webhooks/merchant2/PaymentEvent" target="_blank"&gt;https://yourserver.com/webhooks/merchant2/PaymentEvent&lt;/A&gt;, for example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the same listener program on your end, but just have it check what path was used to call it to determine the merchant.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 17:18:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhooks-with-multiple-auth-net-accounts/m-p/60580#M35104</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-11-21T17:18:16Z</dc:date>
    </item>
  </channel>
</rss>

