<?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 C# SDK needs to be finished or better documented in Community Feedback</title>
    <link>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/12326#M127</link>
    <description>&lt;P&gt;In particular I'm talking about the AuthorizationRequest class which is in the AuthorizeNET project, AIM/Requests/AuthorizationRequest.cs file around line 47&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the constructor overloads isn't finished.&amp;nbsp; The code is currently:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Loader for use with form POSTS from web&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;/// &amp;lt;param name="post"&amp;gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;public AuthorizationRequest(NameValueCollection post) {&lt;BR /&gt;&amp;nbsp;this.SetApiAction(RequestAction.AuthorizeAndCapture);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.CreditCardNumber, post[ApiFields.CreditCardNumber]);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.CreditCardExpiration, post[ApiFields.CreditCardExpiration]);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.Amount, post[ApiFields.Amount]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The constructor is supposed to build a full request based off of post variables.&amp;nbsp; However, it &lt;STRONG&gt;ONLY&lt;/STRONG&gt; sets the card number, expiration, and amount fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the other fields, such as the billing address fields which&amp;nbsp;are required for AVS checks, are ignored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs on this constructor basically says that you only have to pass in the name value collection and the object will set all of the fields.&amp;nbsp; Obviously that isn't accurate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect one of two things to occur.&lt;/P&gt;&lt;P&gt;1. Complete the code for the constructor.&amp;nbsp; Make it aware of all of the "x_" fields and properly instantiate everything it needs internally to work; or,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Update the documents (including the constructor summary) to state exactly what it does do, or in this case, what it doesn't do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first item is much preferred over the second.&amp;nbsp;&amp;nbsp;If you choose to go with the second option, please update your examples to&amp;nbsp;show&amp;nbsp;the additional fields&amp;nbsp;being&amp;nbsp;set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2011 19:13:53 GMT</pubDate>
    <dc:creator>clively</dc:creator>
    <dc:date>2011-04-26T19:13:53Z</dc:date>
    <item>
      <title>C# SDK needs to be finished or better documented</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/12326#M127</link>
      <description>&lt;P&gt;In particular I'm talking about the AuthorizationRequest class which is in the AuthorizeNET project, AIM/Requests/AuthorizationRequest.cs file around line 47&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the constructor overloads isn't finished.&amp;nbsp; The code is currently:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Loader for use with form POSTS from web&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;/// &amp;lt;param name="post"&amp;gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;public AuthorizationRequest(NameValueCollection post) {&lt;BR /&gt;&amp;nbsp;this.SetApiAction(RequestAction.AuthorizeAndCapture);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.CreditCardNumber, post[ApiFields.CreditCardNumber]);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.CreditCardExpiration, post[ApiFields.CreditCardExpiration]);&lt;BR /&gt;&amp;nbsp;this.Queue(ApiFields.Amount, post[ApiFields.Amount]);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The constructor is supposed to build a full request based off of post variables.&amp;nbsp; However, it &lt;STRONG&gt;ONLY&lt;/STRONG&gt; sets the card number, expiration, and amount fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the other fields, such as the billing address fields which&amp;nbsp;are required for AVS checks, are ignored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs on this constructor basically says that you only have to pass in the name value collection and the object will set all of the fields.&amp;nbsp; Obviously that isn't accurate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect one of two things to occur.&lt;/P&gt;&lt;P&gt;1. Complete the code for the constructor.&amp;nbsp; Make it aware of all of the "x_" fields and properly instantiate everything it needs internally to work; or,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Update the documents (including the constructor summary) to state exactly what it does do, or in this case, what it doesn't do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first item is much preferred over the second.&amp;nbsp;&amp;nbsp;If you choose to go with the second option, please update your examples to&amp;nbsp;show&amp;nbsp;the additional fields&amp;nbsp;being&amp;nbsp;set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2011 19:13:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/12326#M127</guid>
      <dc:creator>clively</dc:creator>
      <dc:date>2011-04-26T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK needs to be finished or better documented</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/12668#M131</link>
      <description>&lt;P&gt;Hey clively, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback on the C# SDK. I have passed your feedback on to our development teams so they can keep that all in mind as they make updates to the current code. &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;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2011 20:07:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/12668#M131</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-05-05T20:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK needs to be finished or better documented</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/14146#M151</link>
      <description>&lt;P&gt;I agree with this person's post, and have found the availability of information about this class to be frustratingly limited.&amp;nbsp; I hope that this forum has a fairly active group of people who can help me get the answers I need, that seem to be unavailable through any of the documentation I can find.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2011 06:27:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/14146#M151</guid>
      <dc:creator>DannyStaten</dc:creator>
      <dc:date>2011-07-02T06:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK needs to be finished or better documented</title>
      <link>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/32546#M204</link>
      <description>&lt;P&gt;I have also run into this problem, instead of waiting for a version update (i have api v3.1), I made this "Plug n Play" method that should help others that have also came across this lack of develpment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IGatewayRequest request = new AuthorizationRequest(post);&lt;BR /&gt;request = PopulateRequest(post, request);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//here is the code that makes up the PopulateRequest method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private IGatewayRequest PopulateRequest(FormCollection fc, IGatewayRequest request)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.AddCustomer(fc["x_cust_id"], fc["x_first_name"], fc["x_last_name"], fc["x_address"], fc["x_state"], fc["x_zip"]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.City = fc["x_city"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Type = fc["x_type"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.AddShipping(fc["x_cust_id"], fc["x_ship_to_first_name"], fc["x_ship_to_last_name"], fc["x_ship_to_address"], fc["x_ship_to_state"], fc["x_ship_to_zip"]);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.ShipToCity = fc["x_ship_to_city"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.RecurringBilling = fc["x_recurring_billing"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return request;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note: that the AddShipping and AddCustomer methods do not include a construstor for the city, making these methods incomplete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;-Jake&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 22:08:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Community-Feedback/C-SDK-needs-to-be-finished-or-better-documented/m-p/32546#M204</guid>
      <dc:creator>JeskeJL02</dc:creator>
      <dc:date>2013-01-16T22:08:49Z</dc:date>
    </item>
  </channel>
</rss>

