<?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: Trouble with the card present C# testing example in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20541#M11253</link>
    <description>&lt;P&gt;Welcome to the world of computing.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2011 16:27:01 GMT</pubDate>
    <dc:creator>stymiee</dc:creator>
    <dc:date>2011-12-23T16:27:01Z</dc:date>
    <item>
      <title>Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20471#M11219</link>
      <description>&lt;P&gt;I am attempting to create a test program that will submit a test transaction to authorize.net from a win forms c# &amp;nbsp;application. &amp;nbsp;The plan is to have a software solution that integrates with a card reader and submits the information to authorize.net for processing. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I am having is that when I attempt to send the request over the gateway, the program hangs. &amp;nbsp;All lines of code, including the line that displays the response code do not get processed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have setup a test account and logged into test.authorize.net, and received an API login Id and transaction id. &amp;nbsp;I am also using the sample credit card numbers that were provided in the test account confirmation email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to all of this so I am not too sure what I could be doing wrong. &amp;nbsp;I have pasted a code snippet below and would appreciate any feedback as to what I might be doing wrong, &amp;nbsp;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;private void purchase(string track1, string track2, decimal amount)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Console.WriteLine("Purchasing....");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var request = new CardPresentAuthorizationRequest(10.0M, track1, track2);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;string apiLoginId = "MY_API_ID"; //I use the real one in my code&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;string transactionKey = "MY_TRANSACTION_ID"; //I use the real one in my code&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var gate = new CardPresentGateway(apiLoginId, transactionKey, true);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Console.WriteLine("Starting transaction");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var response = (CardPresentResponse)gate.Send(request, "Test request"); // This is the line of code my program never gets past&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Console.WriteLine("Transaction complete");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Console.WriteLine("Purchased!: {0}: {1}", response.ResponseCode, response.Message);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 19:12:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20471#M11219</guid>
      <dc:creator>adamR839</dc:creator>
      <dc:date>2011-12-22T19:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20473#M11220</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also running into similiar issue.&lt;/P&gt;&lt;P&gt;Error:&amp;nbsp;Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used AIM Integration integrate with an console application to test and I have also used the same cardnumber,test api,transactionkey as provided in AIM example.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:17:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20473#M11220</guid>
      <dc:creator>developer26</dc:creator>
      <dc:date>2011-12-22T20:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20475#M11221</link>
      <description>&lt;P&gt;My guess is the problem with the Test_URL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public const string TEST_URL = "&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";&lt;BR /&gt;public const string LIVE_URL = "&lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i tried &amp;nbsp;with the LIVE_URL atleast then I am getting response:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(13) The merchant login ID or password is invalid or the account is inactive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the TEST_URL doesn't do anything it seems this URL doesn't exists anymore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help will be really appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:29:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20475#M11221</guid>
      <dc:creator>developer26</dc:creator>
      <dc:date>2011-12-22T20:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20477#M11222</link>
      <description>&lt;P&gt;That URL does still work. To use it you must have &lt;A href="http://developer.authorize.net/testaccount/" target="_self"&gt;a developer account&lt;/A&gt;. You use the live URL you must have an active live Authorize.Net and merchant account.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:32:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20477#M11222</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2011-12-22T20:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20479#M11223</link>
      <description>&lt;P&gt;I am not getting any sort of error message, my program is simply running and not proceeding through the rest of the method.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:45:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20479#M11223</guid>
      <dc:creator>adamR839</dc:creator>
      <dc:date>2011-12-22T20:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20481#M11224</link>
      <description>&lt;P&gt;Not sure what to tell you as I am not a C# developer so you'll have to wait until those guys come around and offer their advice. But you can be sure both of those servers are definitely up and running unless you see a message in the &lt;A href="http://community.developer.authorize.net/t5/News-and-Announcements/bd-p/News_Annoucements" target="_self"&gt;news and announcements forum&lt;/A&gt; stating otherwise.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:54:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20481#M11224</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2011-12-22T20:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20507#M11236</link>
      <description>&lt;P&gt;Did it error timeout after like 90 second? can you access the test URL on the browser on the same pc?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2011 22:01:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20507#M11236</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-22T22:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20533#M11249</link>
      <description>&lt;P&gt;I can pull up the test site,&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;, in the browser no problem. &amp;nbsp;I am not entirely certain where the program is getting hung at but, once I call gate.Send(request), this function never returns and I never see any output indicating there is a reponse.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2011 11:23:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20533#M11249</guid>
      <dc:creator>adamR839</dc:creator>
      <dc:date>2011-12-23T11:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20535#M11250</link>
      <description>&lt;P&gt;I download the source and not seeing anything. But it did hard code the delimited char as the pipe '|'.&amp;nbsp; Did you try debug with the source?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2011 14:41:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20535#M11250</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-23T14:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20539#M11252</link>
      <description>&lt;P&gt;I did not change anything but it appears to be working fine today. &amp;nbsp;I am not sure what is different.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2011 16:20:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20539#M11252</guid>
      <dc:creator>adamR839</dc:creator>
      <dc:date>2011-12-23T16:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the card present C# testing example</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20541#M11253</link>
      <description>&lt;P&gt;Welcome to the world of computing.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2011 16:27:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-card-present-C-testing-example/m-p/20541#M11253</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2011-12-23T16:27:01Z</dc:date>
    </item>
  </channel>
</rss>

