<?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: asp.net AIM Line item 1 is invalid. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36617#M20355</link>
    <description>&lt;P&gt;Thanks, the amt should be 10.00 not 2410.00. I'll look into the session.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 22:04:00 GMT</pubDate>
    <dc:creator>bt99</dc:creator>
    <dc:date>2013-11-04T22:04:00Z</dc:date>
    <item>
      <title>asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36575#M20335</link>
      <description>&lt;P&gt;I don't see what the problem is in creating the&amp;nbsp;line_items. Line item 1 is invalid. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim stringList As New List(Of String)()&lt;/P&gt;&lt;P&gt;If Session("p1Name") &amp;lt;&amp;gt; "" And Session("p1Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p2Name") &amp;lt;&amp;gt; "" And Session("p2Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item2&amp;lt;|&amp;gt;" &amp;amp; Session("p2Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p2Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p3Name") &amp;lt;&amp;gt; "" And Session("p3Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item3&amp;lt;|&amp;gt;" &amp;amp; Session("p3Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p3Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p4Name") &amp;lt;&amp;gt; "" And Session("p4Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item4&amp;lt;|&amp;gt;" &amp;amp; Session("p4Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p4Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p5Name") &amp;lt;&amp;gt; "" And Session("p5Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item5&amp;lt;|&amp;gt;" &amp;amp; Session("p5Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p5Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p6Name") &amp;lt;&amp;gt; "" And Session("p6Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item6&amp;lt;|&amp;gt;" &amp;amp; Session("p6Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p6Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p7Name") &amp;lt;&amp;gt; "" And Session("p7Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item7&amp;lt;|&amp;gt;" &amp;amp; Session("p7Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p7Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p8Name") &amp;lt;&amp;gt; "" And Session("p8Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item8&amp;lt;|&amp;gt;" &amp;amp; Session("p8Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p8Amt") &amp;amp; "&amp;lt;|&amp;gt;")&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Dim line_items As String() = stringList.ToArray()&lt;/P&gt;&lt;P&gt;For Each value As String In line_items&lt;BR /&gt;post_string += "&amp;amp;x_line_item=" + HttpUtility.UrlEncode(value)&lt;BR /&gt;Next&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 15:55:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36575#M20335</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-03T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36581#M20338</link>
      <description>&lt;P&gt;It would be easier if you post the post_string&lt;/P&gt;&lt;P&gt;anyway, it missing the taxable field at the end.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 21:15:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36581#M20338</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-03T21:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36595#M20345</link>
      <description>&lt;P&gt;Thanks, In the post, my data is being repeated. i'll check into that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;post:&lt;/P&gt;&lt;P&gt;x_login=logincode&amp;amp;x_tran_key=transcode&amp;amp;x_delim_data=TRUE&amp;amp;x_delim_char=%7c&amp;amp;x_relay_response=FALSE&amp;amp;x_test_request=TRUE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_method=CC&amp;amp;x_first_name=firstname&amp;amp;x_last_name=lastname&amp;amp;x_company=&amp;amp;x_email=address%40domain.com&amp;amp;x_phone=3036819012&amp;amp;x_address=POB+799&amp;amp;x_zip=81252&amp;amp;x_ship_to_address=POB+799&amp;amp;x_ship_to_city=Somecity&amp;amp;x_ship_to_state=CO&amp;amp;x_ship_to_zip=81252&amp;amp;x_description=Description%3a&amp;amp;x_amount=20.00&amp;amp;x_card_num=4007000000027&amp;amp;x_exp_date=1215&amp;amp;x_card_code=test&amp;amp;x_line_item=item1%3c%7c%3eCuster+County+Clinic%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eNx_login=logincode&amp;amp;x_tran_key=transcode&amp;amp;x_delim_data=TRUE&amp;amp;x_delim_char=%7c&amp;amp;x_relay_response=FALSE&amp;amp;x_test_request=TRUE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_method=CC&amp;amp;x_first_name=firstname&amp;amp;x_last_name=lastname&amp;amp;x_company=&amp;amp;x_email=address%40domain.com&amp;amp;x_phone=3036819012&amp;amp;x_address=POB+799&amp;amp;x_zip=81252&amp;amp;x_ship_to_address=POB+799&amp;amp;x_ship_to_city=somecity&amp;amp;x_ship_to_state=CO&amp;amp;x_ship_to_zip=81252&amp;amp;x_description=Description%3a&amp;amp;x_amount=20.00&amp;amp;x_card_num=4007000000027&amp;amp;x_exp_date=1215&amp;amp;x_card_code=test&amp;amp;x_line_item=item1%3c%7c%3eCuster+County+Clinic%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eN&amp;amp;x_line_item=item2%3c%7c%3eAll+Aboard+Westcliffe%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:37:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36595#M20345</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36597#M20346</link>
      <description>&lt;P&gt;The&lt;/P&gt;&lt;PRE&gt;For Each value As String In line_items
post_string += "&amp;amp;x_line_item=" + HttpUtility.UrlEncode(value)
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;is wrong. that why is repeating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a new string var before the loop to add the x_line_item text&lt;/P&gt;&lt;P&gt;then add it to the post_string after the loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:03:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36597#M20346</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-04T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36601#M20347</link>
      <description>&lt;P&gt;Sorry for the trouble, now I'm not getting the postback string on the page, so I can't tell if it is still doubled, but line 1 is still invalid. Maybe the best thing is to post a larger snipit of code. If you can tell me where I'm going wrong it would be most appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;post_values.Add("x_first_name", first_name.Text)&lt;BR /&gt;post_values.Add("x_last_name", last_name.Text)&lt;BR /&gt;post_values.Add("x_company", Company.Text)&lt;BR /&gt;post_values.Add("x_email", email.Text)&lt;BR /&gt;post_values.Add("x_phone", phone.Text)&lt;BR /&gt;post_values.Add("x_address", address.Text)&lt;BR /&gt;post_values.Add("x_zip", zip.Text)&lt;BR /&gt;post_values.Add("x_ship_to_address", shipAddress.Text)&lt;BR /&gt;post_values.Add("x_ship_to_city", shipCity.Text)&lt;BR /&gt;post_values.Add("x_ship_to_state", shipState.Text)&lt;BR /&gt;post_values.Add("x_ship_to_zip", shipZip.Text)&lt;BR /&gt;post_values.Add("x_description", Description.Text)&lt;BR /&gt;post_values.Add("x_amount", amount.Text)&lt;BR /&gt;post_values.Add("x_card_num", card_num.Text)&lt;BR /&gt;post_values.Add("x_exp_date", exp_date.Text)&lt;BR /&gt;post_values.Add("x_card_code", card_code.Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim post_string As String = ""&lt;BR /&gt;For Each field As KeyValuePair(Of String, String) In post_values&lt;BR /&gt;post_string &amp;amp;= field.Key &amp;amp; "=" &amp;amp; HttpUtility.UrlEncode(field.Value) &amp;amp; "&amp;amp;"&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim stringList As New List(Of String)()&lt;/P&gt;&lt;P&gt;If Session("p1Name") &amp;lt;&amp;gt; "" And Session("p1Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p2Name") &amp;lt;&amp;gt; "" And Session("p2Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item2&amp;lt;|&amp;gt;" &amp;amp; Session("p2Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p2Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p3Name") &amp;lt;&amp;gt; "" And Session("p3Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item3&amp;lt;|&amp;gt;" &amp;amp; Session("p3Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p3Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p4Name") &amp;lt;&amp;gt; "" And Session("p4Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item4&amp;lt;|&amp;gt;" &amp;amp; Session("p4Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p4Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p5Name") &amp;lt;&amp;gt; "" And Session("p5Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item5&amp;lt;|&amp;gt;" &amp;amp; Session("p5Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p5Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p6Name") &amp;lt;&amp;gt; "" And Session("p6Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item6&amp;lt;|&amp;gt;" &amp;amp; Session("p6Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p6Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p7Name") &amp;lt;&amp;gt; "" And Session("p7Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item7&amp;lt;|&amp;gt;" &amp;amp; Session("p7Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p7Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;BR /&gt;If Session("p8Name") &amp;lt;&amp;gt; "" And Session("p8Amt") &amp;lt;&amp;gt; "" Then&lt;BR /&gt;stringList.Add("item8&amp;lt;|&amp;gt;" &amp;amp; Session("p8Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p8Amt") &amp;amp; "&amp;lt;|&amp;gt;N")&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim line_items As String() = stringList.ToArray()&lt;/P&gt;&lt;P&gt;For Each value As String In line_items&lt;BR /&gt;post_string += "&amp;amp;x_line_item=" + HttpUtility.UrlEncode(value)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;post_string = Left(post_string, Len(post_string) - 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' create an HttpWebRequest object to communicate with Authorize.net&lt;BR /&gt;Dim objRequest As HttpWebRequest = CType(WebRequest.Create(post_url), HttpWebRequest)&lt;BR /&gt;objRequest.Method = "POST"&lt;BR /&gt;objRequest.ContentLength = post_string.Length&lt;BR /&gt;objRequest.ContentType = "application/x-www-form-urlencoded"&lt;/P&gt;&lt;P&gt;' post data is sent as a stream&lt;BR /&gt;Dim myWriter As StreamWriter = Nothing&lt;BR /&gt;myWriter = New StreamWriter(objRequest.GetRequestStream())&lt;BR /&gt;myWriter.Write(post_string)&lt;BR /&gt;myWriter.Close()&lt;/P&gt;&lt;P&gt;' returned values are returned as a stream, then read into a string&lt;BR /&gt;Dim objResponse As HttpWebResponse = CType(objRequest.GetResponse(), HttpWebResponse)&lt;BR /&gt;Dim responseStream As New StreamReader(objResponse.GetResponseStream())&lt;BR /&gt;Dim post_response As String = responseStream.ReadToEnd()&lt;BR /&gt;responseStream.Close()&lt;/P&gt;&lt;P&gt;' the response string is broken into an array&lt;BR /&gt;Dim response_array As Array = Split(post_response, post_values("x_delim_char"), -1)&lt;/P&gt;&lt;P&gt;' the results are output to the screen in the form of an html numbered list.&lt;BR /&gt;resultSpan.InnerHtml += "&amp;lt;OL&amp;gt;" &amp;amp; vbCrLf&lt;BR /&gt;For Each value In response_array&lt;BR /&gt;resultSpan.InnerHtml += "&amp;lt;LI&amp;gt;" &amp;amp; value &amp;amp; "&amp;amp;nbsp;&amp;lt;/LI&amp;gt;" &amp;amp; vbCrLf&lt;BR /&gt;Next&lt;BR /&gt;resultSpan.InnerHtml += "&amp;lt;/OL&amp;gt;" &amp;amp; vbCrLf&lt;BR /&gt;' individual elements of the array could be accessed to read certain response&lt;BR /&gt;' fields. For example, response_array(0) would return the Response Code,&lt;BR /&gt;' response_array(2) would return the Response Reason Code.&lt;BR /&gt;' for a list of response fields, please review the AIM Implementation Guide&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 18:37:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36601#M20347</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T18:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36603#M20348</link>
      <description>&lt;PRE&gt;post_values.Add("x_first_name", first_name.Text)
post_values.Add("x_last_name", last_name.Text)
post_values.Add("x_company", Company.Text)
post_values.Add("x_email", email.Text)
post_values.Add("x_phone", phone.Text)
post_values.Add("x_address", address.Text)
post_values.Add("x_zip", zip.Text)
post_values.Add("x_ship_to_address", shipAddress.Text)
post_values.Add("x_ship_to_city", shipCity.Text)
post_values.Add("x_ship_to_state", shipState.Text)
post_values.Add("x_ship_to_zip", shipZip.Text)
post_values.Add("x_description", Description.Text)
post_values.Add("x_amount", amount.Text)
post_values.Add("x_card_num", card_num.Text)
post_values.Add("x_exp_date", exp_date.Text)
post_values.Add("x_card_code", card_code.Text)

Dim post_string As String = ""
For Each field As KeyValuePair(Of String, String) In post_values
post_string &amp;amp;= field.Key &amp;amp; "=" &amp;amp; HttpUtility.UrlEncode(field.Value) &amp;amp; "&amp;amp;"
Next
post_string = Left(post_string, Len(post_string) - 1)

Dim stringList As New List(Of String)()
If Session("p1Name") &amp;lt;&amp;gt; "" And Session("p1Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p1Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p2Name") &amp;lt;&amp;gt; "" And Session("p2Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item2&amp;lt;|&amp;gt;" &amp;amp; Session("p2Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p2Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p3Name") &amp;lt;&amp;gt; "" And Session("p3Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item3&amp;lt;|&amp;gt;" &amp;amp; Session("p3Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p3Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p4Name") &amp;lt;&amp;gt; "" And Session("p4Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item4&amp;lt;|&amp;gt;" &amp;amp; Session("p4Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p4Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p5Name") &amp;lt;&amp;gt; "" And Session("p5Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item5&amp;lt;|&amp;gt;" &amp;amp; Session("p5Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p5Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p6Name") &amp;lt;&amp;gt; "" And Session("p6Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item6&amp;lt;|&amp;gt;" &amp;amp; Session("p6Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p6Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p7Name") &amp;lt;&amp;gt; "" And Session("p7Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item7&amp;lt;|&amp;gt;" &amp;amp; Session("p7Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p7Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If
If Session("p8Name") &amp;lt;&amp;gt; "" And Session("p8Amt") &amp;lt;&amp;gt; "" Then
stringList.Add("item8&amp;lt;|&amp;gt;" &amp;amp; Session("p8Name") &amp;amp; "&amp;lt;|&amp;gt;Donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;" &amp;amp; Session("p8Amt") &amp;amp; "&amp;lt;|&amp;gt;N")
End If

Dim line_items As String() = stringList.ToArray()
For Each value As String In line_items
post_string += "&amp;amp;x_line_item=" + HttpUtility.UrlEncode(value)
Next

&lt;/PRE&gt;&lt;P&gt;Did see why it woun't have any postback data, can't you debug it and see what in post_string before you send it?&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>Mon, 04 Nov 2013 19:12:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36603#M20348</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-04T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36605#M20349</link>
      <description>&lt;P&gt;Sorry, I still can't see a post string to debug.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 19:34:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36605#M20349</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36607#M20350</link>
      <description>&lt;P&gt;it crash? not maybe you need to step thru it line by line.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 19:47:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36607#M20350</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-04T19:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36609#M20351</link>
      <description>&lt;P&gt;No error other than&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;3&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;1&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;270&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;(TESTMODE) Line item 1 is invalid.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Still working on it...&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:00:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36609#M20351</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T20:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36611#M20352</link>
      <description>&lt;P&gt;Reverting back to the authorize.net demo code, default.aspx, and adding an email address, I get the line items in an email but no post string.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:40:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36611#M20352</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T20:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36613#M20353</link>
      <description>&lt;P&gt;so, using the following:&lt;/P&gt;&lt;P&gt;Dim line_items As String() = stringList.ToArray()&lt;BR /&gt;For Each value As String In line_items&lt;BR /&gt;post_string += "&amp;amp;x_line_item=" + HttpUtility.UrlEncode(value)&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;response.write(post_string)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;OL&gt;&lt;LI&gt;3&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;1&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;270&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;(TESTMODE) Line item 1 is invalid.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eN&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:58:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36613#M20353</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T20:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36615#M20354</link>
      <description>&lt;P&gt;x_line_item=item1&amp;lt;|&amp;gt;all+aboard+westcliffe&amp;lt;|&amp;gt;donation&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;2410.00&amp;lt;|&amp;gt;n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c&lt;/P&gt;&lt;P&gt;%7c%3eDonation%3c%7c%3e1%3c%7c%3e&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;2410.00%3c%7c%3eN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;look like you have bad data in Session("p1Amt")&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:56:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36615#M20354</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-04T21:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36617#M20355</link>
      <description>&lt;P&gt;Thanks, the amt should be 10.00 not 2410.00. I'll look into the session.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 22:04:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36617#M20355</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T22:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36619#M20356</link>
      <description>&lt;P&gt;%24 is $&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="tbb_TableBullet_inner"&gt;Item price (per unit)&amp;lt;|&amp;gt;: Up to two decimal places. Must be a positive number. The dollar sign ($) is not allowed when submitting delimited information. Excludes tax, freight, and duty.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 04 Nov 2013 22:08:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36619#M20356</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-11-04T22:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: asp.net AIM Line item 1 is invalid.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36621#M20357</link>
      <description>&lt;P&gt;Thanks very much for your help! You saved me a bunch of time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I knew the $ could not be in the amt but it still got in. Here is my item one now, i hope this will help someone else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e10%3c%7c%3eN&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 22:20:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/asp-net-AIM-Line-item-1-is-invalid/m-p/36621#M20357</guid>
      <dc:creator>bt99</dc:creator>
      <dc:date>2013-11-04T22:20:41Z</dc:date>
    </item>
  </channel>
</rss>

