<?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: Adding multiple line items using AIM in vb.net windows client. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55225#M30146</link>
    <description>&lt;P&gt;adding this to work&lt;/P&gt;&lt;P&gt;&amp;amp;x_line_item=123456&amp;lt;|&amp;gt;item3&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;1.00&amp;lt;|&amp;gt;N&amp;amp;x_line_item=987654&amp;lt;|&amp;gt;item6&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;4&amp;lt;|&amp;gt;5.00&amp;lt;|&amp;gt;N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with the key value object, it can only have 1 key of x_line_item.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2016 14:35:56 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2016-07-16T14:35:56Z</dc:date>
    <item>
      <title>Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55155#M30087</link>
      <description>&lt;P&gt;Hello, I've been trying many different options and looking at many post here&amp;nbsp;but cannot figure out how to get multiple line items to post.&lt;/P&gt;&lt;P&gt;If I only have one line item this code works perfect, but as soon as I try two or more I get&amp;nbsp;proverbial Error [ Line Item 1 is invalid (270) ]. someone mentioned a AddLineItem function that is in the SDK but I can find no information on how to use it and certainly not in vb.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" size="2"&gt;'Line Items&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; LineItems &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;IsNot&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;Nothing&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;AndAlso&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; LineItems.Count &amp;gt; 0 &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;For&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;Each&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; itm &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;In&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; LineItems&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; ItemString = &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;.Format(&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;"{0}&amp;lt;|&amp;gt;{1}&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;{2}&amp;lt;|&amp;gt;{3:0.00}&amp;lt;|&amp;gt;N"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;, itm.itemID, itm.Name, itm.Quantity, itm.UnitPrice)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;InputObject.Add(&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;"x_line_item"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;, ItemString)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;Next&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;End&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" size="2"&gt;&lt;FONT color="#0000ff" size="2"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif" size="2"&gt;Any help would be greatly appreciated.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 01:26:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55155#M30087</guid>
      <dc:creator>Gatesay</dc:creator>
      <dc:date>2016-07-09T01:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55159#M30091</link>
      <description>&lt;P&gt;How are you passing the x_line_item? Check the exact url string you are posting to authorize.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6156/highlight/true#M4701" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6156/highlight/true#M4701&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 14:34:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55159#M30091</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-07-09T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55224#M30145</link>
      <description>&lt;P&gt;Thanks for the reply Raynor,&lt;/P&gt;&lt;P&gt;but obviously It wouldn't even work for one item if I wasn't passing the key "x_line_item".&lt;/P&gt;&lt;P&gt;The code creates a valued pair objects(Key/Value) which is then posted along with all the other required processing values using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;webClientRequest.BaseAddress = Merchant.AuthNetBaseURL&lt;BR /&gt;ReturnBytes = webClientRequest.UploadValues(webClientRequest.BaseAddress, "POST", InputObject)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: the InputObject is a 30 element array off key/value pairs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After seeing that Authorize.net can't accept more than one "x_line_item" key, then one must assume that the value of that key must include all the line items you have. So I am guessing you must build a delimited string of all the line items. I'm not sure how it parses that out on the Authorize.net side, but I have seen some examples of just using a comma as the delimiter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try building a string of line items delimited by a comma, but got the same failure so I'm still stumped on this.&lt;/P&gt;&lt;P&gt;It is odd that they would use a comma, since they went to great lenghts to define tags to seperate the line item values (i.e. &amp;lt;|&amp;gt; ) but settled on just a comma for seperating the line items?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key value pair that I am sending tells Authorize.net that the string I am passing is the x_line_item so what the heck is the text string value suppose to look like for multiple items?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2016 13:56:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55224#M30145</guid>
      <dc:creator>Gatesay</dc:creator>
      <dc:date>2016-07-16T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55225#M30146</link>
      <description>&lt;P&gt;adding this to work&lt;/P&gt;&lt;P&gt;&amp;amp;x_line_item=123456&amp;lt;|&amp;gt;item3&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;1.00&amp;lt;|&amp;gt;N&amp;amp;x_line_item=987654&amp;lt;|&amp;gt;item6&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;4&amp;lt;|&amp;gt;5.00&amp;lt;|&amp;gt;N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with the key value object, it can only have 1 key of x_line_item.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2016 14:35:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55225#M30146</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-07-16T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55230#M30151</link>
      <description>&lt;P&gt;thanks for the response, but it's Interesting and &lt;STRONG&gt;not&lt;/STRONG&gt; clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You say that the post can only have 1 key of &lt;STRONG&gt;x_line_item&lt;/STRONG&gt;, yet in your example string above you have included it &lt;STRONG&gt;2 times&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Further more you have concatenated your example string with &lt;STRONG&gt;what&lt;/STRONG&gt;, as you have a "&amp;amp;" as the first character in the string.&lt;/P&gt;&lt;P&gt;Also I asked specifically what &lt;STRONG&gt;delimiter&lt;/STRONG&gt; should be used when concatenating the line item strings. Your example shows no delimiter at all &lt;U&gt;unless&lt;/U&gt; your saying the the delimiter is actually the "&amp;amp;" and should be in the final string. If that is the case then the data for my "Value Pair Object" would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key &amp;nbsp;= &amp;nbsp;&lt;FONT color="#FF0000"&gt;"x_line_item"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Value = &lt;FONT color="#FF0000"&gt;"&lt;SPAN&gt;123456&amp;lt;|&amp;gt;item3&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;1.00&amp;lt;|&amp;gt;N&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;987654&amp;lt;|&amp;gt;item6&amp;lt;|&amp;gt;&lt;/SPAN&gt;&amp;nbsp;"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Remember&lt;/STRONG&gt; I'm using the following command to post!&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ReturnBytes = webClientRequest.UploadValues(webClientRequest.Bas&lt;/SPAN&gt;&lt;SPAN&gt;eAddress, "POST", InputObject)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the object "InputObject" is a key/value pair array (1 array element per key)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;InputObject.Add(&lt;FONT color="#FF0000"&gt;"x_card_num"&lt;/FONT&gt;, Order.CreditCardNumber)&lt;BR /&gt;InputObject.Add(&lt;FONT color="#FF0000"&gt;"x_exp_date"&lt;/FONT&gt;, Order.ExpireDate) &lt;FONT color="#339966"&gt;'MM/DD&lt;/FONT&gt;&lt;BR /&gt;InputObject.Add(&lt;FONT color="#FF0000"&gt;"x_card_code"&lt;/FONT&gt;, Order.SecurityCode)&lt;BR /&gt;InputObject.Add(&lt;FONT color="#FF0000"&gt;"x_line_item"&lt;/FONT&gt;, ItemString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;etc....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:00:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55230#M30151</guid>
      <dc:creator>Gatesay</dc:creator>
      <dc:date>2016-07-18T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55231#M30152</link>
      <description>&lt;P&gt;When you use AIM, at the end what you sending to authorize.net is basically an url string. How you want to build the string is up to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://test.authorize.net/gateway/transact.dll?x_version=3.1&amp;amp;x_type=AUTH_ONLY&amp;amp;x_amount=1.99&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0615&amp;amp;x_delim_data=TRUE&amp;amp;x_relay_response=FALSE&amp;amp;x_login=[youloginID]&amp;amp;x_tran_key=[yourtransactionkey" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll?x_version=3.1&amp;amp;x_type=AUTH_ONLY&amp;amp;x_amount=1.99&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0615&amp;amp;x_delim_data=TRUE&amp;amp;x_relay_response=FALSE&amp;amp;x_login=[youloginID]&amp;amp;x_tran_key=[yourtransactionkey&lt;/A&gt;]&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:18:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55231#M30152</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-07-18T12:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple line items using AIM in vb.net windows client.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55233#M30154</link>
      <description>&lt;P&gt;Clearly I need someone that is familar with the Authorize.net SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Method I'm using:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;webClientRequest.UploadValues(webClientRequest.Bas&lt;/SPAN&gt;&lt;SPAN&gt;eAddress, "POST", InputObject)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to post &lt;U&gt;is not my method,&lt;/U&gt; but part of the Authorize.net SDK. So I'm simply trying to build the proper Input Object to feed it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the webClientRequest.UploadValues builds that actual sting that is transmitted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there &amp;nbsp;anyone out there in this gourp that can offer me some assistance on the proper way to build the value string for the x_line_item key &amp;nbsp;used by the UploadValues method when you have multiple line items.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried several secenarios with no luck (other than sending just one line item).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help in that area would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 16:34:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-multiple-line-items-using-AIM-in-vb-net-windows-client/m-p/55233#M30154</guid>
      <dc:creator>Gatesay</dc:creator>
      <dc:date>2016-07-18T16:34:44Z</dc:date>
    </item>
  </channel>
</rss>

