<?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: AIM, C# 1.7SDK - AuthorizeNet Request - Multiple Line Items Not Working in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24585#M13174</link>
    <description>&lt;P&gt;You appear to be accessing the post values directly instead of using the SDK functionality to handle them for you.&amp;nbsp; The GatewayRequest object (and all of the objects that extend it) includes a "AddLineItem" method which can be called multiple times and automatically handles adding all of the line items.&amp;nbsp; However, there was actually a bug with this method in version 1.7.0 of the .Net SDK, so make sure you have the newest version (currently 1.7.1).&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2012 20:45:31 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2012-03-16T20:45:31Z</dc:date>
    <item>
      <title>AIM, C# 1.7SDK - AuthorizeNet Request - Multiple Line Items Not Working</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24493#M13128</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a difficult time getting multiple lines passed properly in my AuthorizeNet request object. I saw there was a fix for this recently in 1.7 SDK - but I don't know what that fix actually is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A single line item works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;request.Post["x_line_item"] = "1&amp;lt;|&amp;gt;Reservation&amp;lt;|&amp;gt;Event&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;20&amp;lt;|&amp;gt;F";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how do I pass multiple line items? I tried a few things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;request.Post["x_line_item"] = "1&amp;lt;|&amp;gt;Reservation&amp;lt;|&amp;gt;Event&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;20&amp;lt;|&amp;gt;F&amp;amp;x_line_item=2&amp;lt;|&amp;gt;Reservation&amp;lt;|&amp;gt;Event&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;20&amp;lt;|&amp;gt;F";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;request.Post["x_line_item1"] = "1&amp;lt;|&amp;gt;Reservation&amp;lt;|&amp;gt;Event&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;20&amp;lt;|&amp;gt;F&amp;amp;x_line_item2=2&amp;lt;|&amp;gt;Reservation&amp;lt;|&amp;gt;Event&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;20&amp;lt;|&amp;gt;F";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I can get the transaction to go through as approved, I don't see the line items ever showing up in my receipt or transaction report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any information would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nirav&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 10:09:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24493#M13128</guid>
      <dc:creator>nirpatel</dc:creator>
      <dc:date>2012-03-15T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: AIM, C# 1.7SDK - AuthorizeNet Request - Multiple Line Items Not Working</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24505#M13134</link>
      <description>&lt;P&gt;The output needs to be multiple form fields, one per item, all with the name x_line_item. I'm not familiar enough with C# to tell you how to achieve that, however.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 17:30:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24505#M13134</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-03-15T17:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: AIM, C# 1.7SDK - AuthorizeNet Request - Multiple Line Items Not Working</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24515#M13139</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, having the same name x_line_item causes the request to be invalid. Using r&lt;SPAN&gt;equest.Post["x_line_item"], replaces the previous line item. Is there a sample API request string with multiple line items?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 19:18:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24515#M13139</guid>
      <dc:creator>nirpatel</dc:creator>
      <dc:date>2012-03-15T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: AIM, C# 1.7SDK - AuthorizeNet Request - Multiple Line Items Not Working</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24585#M13174</link>
      <description>&lt;P&gt;You appear to be accessing the post values directly instead of using the SDK functionality to handle them for you.&amp;nbsp; The GatewayRequest object (and all of the objects that extend it) includes a "AddLineItem" method which can be called multiple times and automatically handles adding all of the line items.&amp;nbsp; However, there was actually a bug with this method in version 1.7.0 of the .Net SDK, so make sure you have the newest version (currently 1.7.1).&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 20:45:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-C-1-7SDK-AuthorizeNet-Request-Multiple-Line-Items-Not/m-p/24585#M13174</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2012-03-16T20:45:31Z</dc:date>
    </item>
  </channel>
</rss>

