<?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 webhook, called by sandbox or production? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhook-called-by-sandbox-or-production/m-p/75910#M47382</link>
    <description>&lt;P&gt;Using &lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html" target="_blank" rel="noopener"&gt;Accept.js&lt;/A&gt;&amp;nbsp;option 2 and the sandbox server I was able to get a token and then complete a&amp;nbsp; transaction using the createTransactionRequest API. To complete the processing I need done I wrote webhook code, configured it into my sandbox Merchant Interface, and got it working. Next up was to get my code working on the production server by switching my CodeConstants.php / AcceptUI.js script / controller constants from sandbox to production, and I have it working. What I now want to do is merge the code for sandbox and production, and thus by adding a parameter to my URL it uses the sandbox server and without the parameter it uses the production server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is my webhook code doesn't know which server is calling it. Is there a way to tell?&lt;/P&gt;&lt;P&gt;1) Perhaps the webhook code is executed by IP address A for sandbox and is IP address B for production (or a range of IP addresses for each type)?&lt;/P&gt;&lt;P&gt;2) In looking at the headers I see a 'X-Opnet-Transaction-Trace' and when I dumped it it started with a '7' but am not sure if that was sandbox or production. Perhaps sandbox begin with an 'X' and production begin with a 'Y'?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 02:57:50 GMT</pubDate>
    <dc:creator>bretmaverick999</dc:creator>
    <dc:date>2021-04-22T02:57:50Z</dc:date>
    <item>
      <title>webhook, called by sandbox or production?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhook-called-by-sandbox-or-production/m-p/75910#M47382</link>
      <description>&lt;P&gt;Using &lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html" target="_blank" rel="noopener"&gt;Accept.js&lt;/A&gt;&amp;nbsp;option 2 and the sandbox server I was able to get a token and then complete a&amp;nbsp; transaction using the createTransactionRequest API. To complete the processing I need done I wrote webhook code, configured it into my sandbox Merchant Interface, and got it working. Next up was to get my code working on the production server by switching my CodeConstants.php / AcceptUI.js script / controller constants from sandbox to production, and I have it working. What I now want to do is merge the code for sandbox and production, and thus by adding a parameter to my URL it uses the sandbox server and without the parameter it uses the production server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having is my webhook code doesn't know which server is calling it. Is there a way to tell?&lt;/P&gt;&lt;P&gt;1) Perhaps the webhook code is executed by IP address A for sandbox and is IP address B for production (or a range of IP addresses for each type)?&lt;/P&gt;&lt;P&gt;2) In looking at the headers I see a 'X-Opnet-Transaction-Trace' and when I dumped it it started with a '7' but am not sure if that was sandbox or production. Perhaps sandbox begin with an 'X' and production begin with a 'Y'?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 02:57:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/webhook-called-by-sandbox-or-production/m-p/75910#M47382</guid>
      <dc:creator>bretmaverick999</dc:creator>
      <dc:date>2021-04-22T02:57:50Z</dc:date>
    </item>
  </channel>
</rss>

