<?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: .NET API endpoint in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59016#M33617</link>
    <description>&lt;PRE&gt;string baseUrl = "YOUR_BASE_URL";
string xmlBaseUrl = "YOUR_XML_BASE_URL";
AuthorizeNet.Environment.createEnvironment(baseUrl, xmlBaseUrl);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;referenced, Sandbox and Production URLs are already declared in Environment.cs&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  public class Environment {
        public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net");
        public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net");&lt;/PRE&gt;&lt;P&gt;So just by changing&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.PRODUCTION;&lt;/PRE&gt;&lt;P&gt;you are effectively passing in the alternate URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 21:39:04 GMT</pubDate>
    <dc:creator>NexusSoftware</dc:creator>
    <dc:date>2017-07-27T21:39:04Z</dc:date>
    <item>
      <title>.NET API endpoint</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59009#M33610</link>
      <description>&lt;P&gt;In using the .NET compiled .dll from NuGet it seems the endpoint is hard coded in. Is there a method to passin the endpoint?&amp;nbsp; Such as from an appsettings key?&amp;nbsp; Thx&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:34:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59009#M33610</guid>
      <dc:creator>glerler</dc:creator>
      <dc:date>2017-07-27T18:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: .NET API endpoint</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59010#M33611</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/2133"&gt;@glerler&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to set the environment, sandbox or production?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-dotnet#switching-between-the-sandbox-environment-and-the-production-environment" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-dotnet#switching-between-the-sandbox-environment-and-the-production-environment&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:43:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59010#M33611</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-07-27T18:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: .NET API endpoint</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59014#M33615</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;What is was asking is there a method to pass the EndPoint URL string in?&lt;/P&gt;&lt;P&gt;It looks to be hard coded in.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 20:20:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59014#M33615</guid>
      <dc:creator>glerler</dc:creator>
      <dc:date>2017-07-27T20:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: .NET API endpoint</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59016#M33617</link>
      <description>&lt;PRE&gt;string baseUrl = "YOUR_BASE_URL";
string xmlBaseUrl = "YOUR_XML_BASE_URL";
AuthorizeNet.Environment.createEnvironment(baseUrl, xmlBaseUrl);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;As &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;referenced, Sandbox and Production URLs are already declared in Environment.cs&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  public class Environment {
        public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net");
        public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net");&lt;/PRE&gt;&lt;P&gt;So just by changing&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.PRODUCTION;&lt;/PRE&gt;&lt;P&gt;you are effectively passing in the alternate URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 21:39:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NET-API-endpoint/m-p/59016#M33617</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-27T21:39:04Z</dc:date>
    </item>
  </channel>
</rss>

