<?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: C# code works in test but not live in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34043#M18539</link>
    <description>&lt;P&gt;That default to true.&lt;/P&gt;&lt;P&gt;I would said it erroring trying to connect to &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but debug the code to be sure.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2013 19:12:07 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-04-25T19:12:07Z</dc:date>
    <item>
      <title>C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34016#M18512</link>
      <description>&lt;P&gt;I've got the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div id="AuthorizeDiv" style="visibility:collapse" runat="server"&amp;gt;
                                        &amp;lt;%=AuthorizeNet.Helpers.CheckoutFormBuilders.CreditCardForm(false) %&amp;gt;
                                    &amp;lt;/div&amp;gt;

    IGateway OpenGateway()
        {
            //we used the form builder so we can now just load it up
            //using the form reader
            var login = ConfigurationManager.AppSettings["ApiLogin"];
            var transactionKey = ConfigurationManager.AppSettings["TransactionKey"];

            var gate = new Gateway(login, transactionKey, false);
            return gate;
        }

var gate = OpenGateway();

                //build the request from the Form post
                var apiRequest = CheckoutFormReaders.BuildAuthAndCaptureFromPost();

                apiRequest.Queue(ApiFields.Amount, OrderTotal.ToString());

                //send to Auth.NET
                var response = gate.Send(apiRequest);

                string code = response.ResponseCode;

                if (code.Length &amp;gt; 0 &amp;amp;&amp;amp; code != "1")
                {
                    throw new Exception("Error processing Authorize.net transaction. Error code: " + code + " - " + response.Message);
                }
                else
                {
                    if (!response.Approved)
                    {
                        throw new Exception("Authorize.net transaction not approved. Error code: " + code + " - " + response.Message);
                    }
                }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Am I just missing something or misunderstanding something about how this works?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 16:58:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34016#M18512</guid>
      <dc:creator>Machaira</dc:creator>
      <dc:date>2013-04-23T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34018#M18514</link>
      <description>&lt;P&gt;error compiling? response code 3?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2013 19:27:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34018#M18514</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-23T19:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34024#M18520</link>
      <description>&lt;P&gt;No compilation errors and no response codes when calling the code. It never shows on the list of transactions that have gone through though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to test live code that I'm not aware of? None of the testing tools help.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:26:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34024#M18520</guid>
      <dc:creator>Machaira</dc:creator>
      <dc:date>2013-04-24T15:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34025#M18521</link>
      <description>&lt;P&gt;If the live account is in testmode. Transaction will not get save.&lt;/P&gt;&lt;P&gt;so code is blank?&lt;/P&gt;&lt;PRE&gt;string code = response.ResponseCode;&lt;/PRE&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>Wed, 24 Apr 2013 15:48:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34025#M18521</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-24T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34026#M18522</link>
      <description>&lt;P&gt;It's not in test mode. No exceptions are thrown so the code is blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shouldn't be this difficult IMO. I would think it would just work. :(&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:36:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34026#M18522</guid>
      <dc:creator>Machaira</dc:creator>
      <dc:date>2013-04-24T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34031#M18527</link>
      <description>&lt;PRE&gt;var response = gate.Send(apiRequest);&lt;/PRE&gt;&lt;P&gt;response is blank too?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:09:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34031#M18527</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-24T20:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34042#M18538</link>
      <description>&lt;P&gt;The object is not null and the response.Approved property is true.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 17:57:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34042#M18538</guid>
      <dc:creator>Machaira</dc:creator>
      <dc:date>2013-04-25T17:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: C# code works in test but not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34043#M18539</link>
      <description>&lt;P&gt;That default to true.&lt;/P&gt;&lt;P&gt;I would said it erroring trying to connect to &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but debug the code to be sure.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 19:12:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-code-works-in-test-but-not-live/m-p/34043#M18539</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-04-25T19:12:07Z</dc:date>
    </item>
  </channel>
</rss>

