Reply
Member
Posts: 9
Registered: ‎11-03-2013

Re: asp.net AIM Line item 1 is invalid.

so, using the following:

Dim line_items As String() = stringList.ToArray()
For Each value As String In line_items
post_string += "&x_line_item=" + HttpUtility.UrlEncode(value)
Next

response.write(post_string)

 

i get

 

  1. 270 
  2. (TESTMODE) Line item 1 is invalid. 

 

x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eN

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: asp.net AIM Line item 1 is invalid.

x_line_item=item1<|>all+aboard+westcliffe<|>donation<|>1<|>%2410.00<|>n

 

x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c

%7c%3eDonation%3c%7c%3e1%3c%7c%3e%2410.00%3c%7c%3eN

 

look like you have bad data in Session("p1Amt")

Member
Posts: 9
Registered: ‎11-03-2013

Re: asp.net AIM Line item 1 is invalid.

Thanks, the amt should be 10.00 not 2410.00. I'll look into the session.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: asp.net AIM Line item 1 is invalid.

[ Edited ]

%24 is $

 
Item price (per unit)<|>: 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.
Highlighted
Solution
Accepted by topic author bt99
‎08-21-2015 01:58 AM
Member
Posts: 9
Registered: ‎11-03-2013

Re: asp.net AIM Line item 1 is invalid.

Thanks very much for your help! You saved me a bunch of time.

 

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.

 

x_line_item=item1%3c%7c%3eAll+Aboard+Westcliffe%3c%7c%3eDonation%3c%7c%3e1%3c%7c%3e10%3c%7c%3eN