<?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: Different results for console application and AIM example code in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38415#M21018</link>
    <description>&lt;P&gt;I think you just pass in 0 for that. Not sure why is there a transactionID field.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2014 20:21:40 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2014-01-14T20:21:40Z</dc:date>
    <item>
      <title>Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38389#M21005</link>
      <description>&lt;P&gt;I can successfully run the AIM example code which posts transactions using ASP.NET.&lt;/P&gt;&lt;P&gt;When I change the transaction types from Auth_Capture and Capture_Only and add the x_auth_code, it is also successfully.&amp;nbsp; When I remove the x_auth_code, it responds as expected, reporting that it needs the auth. code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to do these changes in the console application, it always completes the transaction.&amp;nbsp; When I do not include the x_auth_code for a Capture_Only, the transaction completes successfully.&amp;nbsp; This is the code of the console application that I added or changed to get the above results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class Program
    {
        static void Main(string[] args)
        {
          NameValueCollection post_values = new NameValueCollection();
           post_values.Add("x_version", "3.1");
            post_values.Add("x_delim_data", "TRUE");
            post_values.Add("x_delim_char", "|");
            post_values.Add("x_relay_response", "FALSE");

            post_values.Add("x_type", "CAPTURE_ONLY");
            post_values.Add("x_method", "CC");
            post_values.Add("x_card_num", "6011000000000012");
            post_values.Add("x_exp_date", "1015");

            post_values.Add("x_amount", "50.00");
            post_values.Add("x_description", "No auth code for Capture only");
             var request = new AuthorizationRequest(post_values);
            //step 2 - create the gateway, sending in your credentials
            //I use my correct login and transaction key but do not want to post it.
            var gate = new Gateway("I use correct login", 
                                   "I use correct transaction key");
            
            //step 3 - make some money
            var response = gate.Send(request);
            
            Console.WriteLine("ResponseCode-{0}: ResponseMessage-{1} AuthorizationCode-{2} TransactionID-{3} ", 
                response.ResponseCode, response.Message, response.AuthorizationCode, response.TransactionID);
            Console.Read();

        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This example should report an error because there is not x_auth_code set.&amp;nbsp; However, the transaction completes successfully and I can view it as an unsettled transaction.&amp;nbsp; Its status is listed as 'Captured/Pending Settlement' like all of the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't it throw an error like the AIM Example does?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I will want to use the console version when I am updating my web service to use Authorize.Net.&amp;nbsp; So I need to understand how these requests are different from the ASP.NET example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 15:52:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38389#M21005</guid>
      <dc:creator>gloria10</dc:creator>
      <dc:date>2014-01-14T15:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38395#M21008</link>
      <description>&lt;P&gt;There are 2 different request&lt;/P&gt;&lt;PRE&gt; var request = new AuthorizationRequest(post_values);&lt;/PRE&gt;&lt;P&gt;CaptureRequest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:28:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38395#M21008</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-14T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38401#M21011</link>
      <description>&lt;P&gt;If I want to have an option for a voice authorization transaction, do I have to do 2 separate requests?&lt;/P&gt;&lt;P&gt;First an Authorization Only request, then a Capture Request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 17:43:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38401#M21011</guid>
      <dc:creator>gloria10</dc:creator>
      <dc:date>2014-01-14T17:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38403#M21012</link>
      <description>&lt;P&gt;No. I mean to change your program, so instead of&lt;/P&gt;&lt;PRE&gt; post_values.Add("x_type", "CAPTURE_ONLY");&lt;/PRE&gt;&lt;P&gt;to override the x_type on the request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use either the AuthorizationRequest or CaptureRequest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 17:54:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38403#M21012</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-14T17:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38407#M21014</link>
      <description>&lt;P&gt;But to create a CaptureRequest object, you need a transactionID.&lt;/P&gt;&lt;P&gt;To get a transactionID, don't you need to create an authorization only request?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:04:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38407#M21014</guid>
      <dc:creator>gloria10</dc:creator>
      <dc:date>2014-01-14T18:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38415#M21018</link>
      <description>&lt;P&gt;I think you just pass in 0 for that. Not sure why is there a transactionID field.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 20:21:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38415#M21018</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-14T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38423#M21022</link>
      <description>&lt;P&gt;Whether I use the transactionID of 0 or the response.TransactionID&lt;/P&gt;&lt;P&gt;I get the error that I need a credit card number.&lt;/P&gt;&lt;P&gt;There is not CaptureRequest constructor that allows for the credit card number and expiration date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CaptureRequest constructor parameters are only:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; decimal (I assume this is the amount of the charge)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; transactionID - "0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; authorization code - This would be the voice authorization code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to complete a Voice Authorization transaction.&lt;/P&gt;&lt;P&gt;The documentation says I need to use CaptureRequest method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What other methods do I need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&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>Wed, 15 Jan 2014 13:49:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38423#M21022</guid>
      <dc:creator>gloria10</dc:creator>
      <dc:date>2014-01-15T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38427#M21024</link>
      <description>&lt;P&gt;If you going to use CaptureRequest you can add the cc# and expired date like&lt;/P&gt;&lt;P&gt;request.Queue(ApiFields.CreditCardNumber, "4111111111111111");&lt;BR /&gt;request.Queue(ApiFields.CreditCardExpiration, "0615");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 15:54:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38427#M21024</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-15T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Different results for console application and AIM example code</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38429#M21025</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;That did it!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:19:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Different-results-for-console-application-and-AIM-example-code/m-p/38429#M21025</guid>
      <dc:creator>gloria10</dc:creator>
      <dc:date>2014-01-15T16:19:34Z</dc:date>
    </item>
  </channel>
</rss>

