<?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: Itemized order info with AIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2817#M2535</link>
    <description>&lt;P&gt;I've hardcoded it this way for testing and it always results in this error 270:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x_line_item="item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y&amp;amp;x_line_item=item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y&amp;amp;x_line_item=item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y&amp;amp;"

post_values.Add "x_line_item", x_line_item&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I pass a single item like this one below it works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x_line_item = "item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some typo I am not seeing?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2010 19:49:17 GMT</pubDate>
    <dc:creator>txm1004</dc:creator>
    <dc:date>2010-04-14T19:49:17Z</dc:date>
    <item>
      <title>Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2797#M2515</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We're having a problem with the itemized order info using the AIM method. On page 22 of the AIM developer guide is a snippet of sample code - we have copied this snippet into our test page and it always results in an error (code 270:&amp;nbsp;Line item is invalid).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x_line_item=item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y&amp;amp;x_line_item=item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y&amp;amp;
x_line_item=item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y&amp;amp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contacted&amp;nbsp;Auth.net and told them their sample code results in an error but their customer service rep disagreed...hmmm, ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we change the code to pass a single item only it works fine. Does anyone know how to fix this sample code? I've tried just about all I can think of and am close to pulling out my hair!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 23:18:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2797#M2515</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-13T23:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2800#M2518</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just submitted a sample test using the line item data provided, and was able to process a successful transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;========= GENERAL INFORMATION =========

Merchant : Developer Test Account
Date/Time : 13-Apr-2010 06:26:14 PM
Transaction ID : 2152734320

========= ORDER INFORMATION =========
Invoice Number :
Description : test
Total : US $1.00
Payment Method : Visa

Item : item1
Description : golf balls
Quantity : 2
Unit Price : US $18.95

Item : item2
Description : golf bag
Wilson golf carry bag, red
Quantity : 1
Unit Price : US $39.99

Item : item3
Description : book
Golf for Dummies
Quantity : 1
Unit Price : US $21.99

==== BILLING INFORMATION ===
Customer ID :
First Name : Hasan
Last Name : Robinson
Company : Sound Commerce
Address : 128 W13th St. Suite 916
City : Kansas city
State/Province : MO
Zip/Postal Code : 64105
Country : USA
Phone : 8164218891
Fax :
Email : hasan@soundcommerce.com

==== SHIPPING INFORMATION ===
First Name : Hasan
Last Name : Robinson
Company : Sound Commerce
Address : 128 W13th St. Suite 916
City : Kansas city
State/Province : MO
Zip/Postal Code : 64105
Country : USA

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you urlencoding the parameters? Please provide a snippet of how you're passing the data to Authorize.Net.&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>Wed, 14 Apr 2010 00:29:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2800#M2518</guid>
      <dc:creator>soundcommerce</dc:creator>
      <dc:date>2010-04-14T00:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2817#M2535</link>
      <description>&lt;P&gt;I've hardcoded it this way for testing and it always results in this error 270:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x_line_item="item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y&amp;amp;x_line_item=item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y&amp;amp;x_line_item=item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y&amp;amp;"

post_values.Add "x_line_item", x_line_item&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I pass a single item like this one below it works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;x_line_item = "item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some typo I am not seeing?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 19:49:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2817#M2535</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-14T19:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2825#M2542</link>
      <description>&lt;P&gt;I'm having the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use an HTML form with multiple hidden fields with name="x_line_item" it will take the additional items.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However using the sample vb.net code for AIM, or creating a post with the same data, they get rejected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone make this work??&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 07:49:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2825#M2542</guid>
      <dc:creator>airoff</dc:creator>
      <dc:date>2010-04-15T07:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2845#M2561</link>
      <description>&lt;P&gt;I'm glad that I'm not the only one having problems with Authorize.net's sample code...I thought I was going crazy. :smileysad:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The itemized order feature works fine for us when using SIM...or when using just 1 single item with AIM. But the sample code does not work for multiple items and AIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion? Or may someone from Authorize.net could chime in....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2010 00:05:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2845#M2561</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-16T00:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2860#M2576</link>
      <description>&lt;P&gt;I was just chatting with Auth.net's customer support (thanks, Emily - you were really trying to help!)...&lt;/P&gt;&lt;P&gt;We tried several things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;- it seems that there is an extra bracketed pipe in the sample code for item1 right after the string 'golf balls'...the other line items do not have this. I get the same error = 270 though when I remove the bracketed pipe from item1&lt;/LI&gt;&lt;LI&gt;- there's a comma in the text field in item2...we tried removing that but it results in the same error = 270&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe there's a bug in this feature and asked for escalation of this issue for a development review...I hope I will hear from auth.net soon. If/when I do I will update this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any other suggestions or possible solutions? I can't image that we're the first to run into this problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2010 21:17:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2860#M2576</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-16T21:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2891#M2606</link>
      <description>&lt;P&gt;I'm attaching an updated copy of our AIM PHP sample code with a new section showing how to add line item details.&amp;nbsp; The most common error when adding line item details to our sample code is to simply add multiple x_line_item fields to the array. Because the sample code uses associative arrays, this will usually cause a duplicate key error or all but one of the items will simply be discarded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the above example, the most likely problem is actually the url_encode process itself.&amp;nbsp; I see that you avoided the error of duplicate keys by adding the whole url string with only one , unfortunately this presents a whole new error by urlencoding the ampersands in the string.&amp;nbsp; This results in them no longer being recognized as special characters dividing the multiple x_line_item values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at this new sample code and let me know if you have any questions.&amp;nbsp; I can provide the equivalent code for any of our AIM samples if needed.&amp;nbsp; If you do find this helpful, I will consider officially adding similar code to each of our available AIM sample code downloads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2010 21:35:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2891#M2606</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2010-04-20T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2976#M2686</link>
      <description>&lt;P&gt;Hi Trevor,&lt;/P&gt;&lt;P&gt;Thank you for the explanation...very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, if possible I'd like to see a sample code for the line items details for ASP.&lt;/P&gt;&lt;P&gt;Can you post this here or update the sample code library?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 19:17:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/2976#M2686</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-28T19:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3000#M2710</link>
      <description>&lt;P&gt;Since you just said ASP, I'm going to assume that you are referring to ASP classic.&amp;nbsp; I've attached an updated version of the ASP classic code that adds in the line items.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2010 22:30:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3000#M2710</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2010-04-29T22:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3003#M2713</link>
      <description>&lt;P&gt;Hi Trevor,&lt;/P&gt;&lt;P&gt;Fantastic! This works like a charm now! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question though...I noticed you placed the line item code after the post_string has already been completely encoded. We're then looping over our shopping cart line items and add the line items with this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;item = Count &amp;amp; "&amp;lt;|&amp;gt;" &amp;amp; RS("ItemCode") &amp;amp; "&amp;lt;|&amp;gt;" &amp;amp; RS("ItemName") &amp;amp; "&amp;lt;|&amp;gt;" &amp;amp; RS("ItemQuantity") &amp;amp; "&amp;lt;|&amp;gt;" &amp;amp; RS("ItemDiscountedPrice") &amp;amp; "&amp;lt;|&amp;gt;N"
	
post_string = post_string &amp;amp; "&amp;amp;x_line_item=" &amp;amp; Server.URLEncode(item)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would also like to pass the line item info to the merchant receipt using this code:&lt;/P&gt;&lt;PRE&gt;merchant_field = "Item " &amp;amp; Count
merchant_field_value = RS("ItemCode") &amp;amp; " - " &amp;amp; RS("ItemName") &amp;amp; "  " &amp;amp; FormatCurrency(RS("ItemDiscountedPrice"))

post_values.Add merchant_field, merchant_field_value&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the post_string has already been encoded I assume that we can't add these merchant_fields during the same loop and should add them prior to the encoding of the post_string, correct? Just want to make sure we're not doing an unnecessary loop over the shopping cart...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you for your help!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2010 23:06:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3003#M2713</guid>
      <dc:creator>txm1004</dc:creator>
      <dc:date>2010-04-29T23:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3035#M2743</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not entirely sure that I understand your question.&amp;nbsp; Just to be clear, the post string itself is never truly encoded, just each of the values that is added on to it.&amp;nbsp; You can add more values at any time prior to the obj.request being sent using a function simililar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;post_string = post_string &amp;amp; "&amp;amp;&amp;lt;VARIABLE_NAME&amp;gt;=" &amp;amp; Server.URLEncode(&amp;lt;VALUE&amp;gt;)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, this is exatly what is being done with the line item code that I just added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2010 22:24:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/3035#M2743</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2010-04-30T22:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6132#M4689</link>
      <description>&lt;P&gt;Any chance there's a Perl example of this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 17:55:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6132#M4689</guid>
      <dc:creator>tmahaffey</dc:creator>
      <dc:date>2010-10-07T17:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6140#M4693</link>
      <description>&lt;P&gt;Actually, the feedback in this thread encouraged me to update the rest of the samples. Since late July, all of the AIM sample code available from this site has included an example of how to submit line item details. &amp;nbsp;The new section is commented out by default and is found just a few lines after the other variables are declared in all of the samples.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 21:52:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6140#M4693</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2010-10-07T21:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6142#M4694</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I tried that and can get 1 item to work, comment it out and the 2nd one works, but when I build out my string in Perl it won't accept it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 22:04:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6142#M4694</guid>
      <dc:creator>tmahaffey</dc:creator>
      <dc:date>2010-10-07T22:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6144#M4695</link>
      <description>&lt;P&gt;The logic for submitting the line items in perl is very different then what is described earlier in this thread for PHP, and actually much simpler. &amp;nbsp;The same basic problem is there, you can't add a multiple key/value pairs for x_line_item without them conflicting. &amp;nbsp;Luckily, this was accounted for in perl and you can pass multiple values for an indvidual key and the LWP::UserAgent class will automatically separate it into multiple key/value pairs when it creates the post string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Within the sample, three line items are passed using the following format within $post_values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;"x_line_item"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;		&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;=&amp;gt; ["item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;		&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;"item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;		&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="'courier new', courier"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-size: x-small;"&gt;"item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y"]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;This a list of 3 separate line item values in one key, it is only spread across 3 lines for readability, you will encounter formatting errors if you uncomment only one line or another. &amp;nbsp;Also don't forget to add a comma after the previous name/value pair (x_zip in the sample). &amp;nbsp;You should be able to add or remove items to that x_line_item list without any errors.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 22:41:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6144#M4695</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2010-10-07T22:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6152#M4699</link>
      <description>&lt;P&gt;I was able to get the sample to work first try earlier this week (thanks for the samples!).&amp;nbsp; :manhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue seems to when I pass my shopping cart values into a Perl string and try to have it passed to &lt;U&gt;$post_values&lt;/U&gt;.&amp;nbsp; Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&amp;nbsp;$cust_items&amp;nbsp;=&amp;nbsp;'"' . $ID_1 . "&amp;lt;|&amp;gt;" . $NAME_1 . "&amp;lt;|&amp;gt;" . $ADDTLINFO_1 . "&amp;lt;|&amp;gt;" . $QUANTITY_1 . "&amp;lt;|&amp;gt;" . $PRICE_1 . "&amp;lt;|&amp;gt;" . $tax_item . '",' .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'"' . $ID_2 . "&amp;lt;|&amp;gt;" . $NAME_2 . "&amp;lt;|&amp;gt;" . $ADDTLINFO_2 . "&amp;lt;|&amp;gt;" . $QUANTITY_2 . "&amp;lt;|&amp;gt;" . $PRICE_2 . "&amp;lt;|&amp;gt;" . $tax_item . '"';&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and then I'm trying to pass that to &lt;U&gt;x_line_item&lt;/U&gt; this way,&amp;nbsp;&lt;FONT color="#000080"&gt;&amp;nbsp;"x_line_item"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; [$cust_items]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;It works great with 1 item, but fails with the 2nd.&amp;nbsp; I have been able to print $cust_items to see tha values and it comes back as &lt;FONT color="#008000"&gt;"30-02&amp;lt;|&amp;gt;2012 Fire Combo T-Shirt&amp;lt;|&amp;gt;Medium&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y","30-01&amp;lt;|&amp;gt;2012 Party T-Shirt&amp;lt;|&amp;gt;Extra Large&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y"&lt;/FONT&gt;&amp;nbsp; I can copy/paste that string to "x_line_item" it that works, but when I try to pass my sting $cust_items I get "Line item 1 is invalid."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Am I not able to place the string into "x_line_item"?&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:04:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6152#M4699</guid>
      <dc:creator>tmahaffey</dc:creator>
      <dc:date>2010-10-08T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6156#M4701</link>
      <description>&lt;BLOCKQUOTE&gt;Good Morning All!&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The general syntax and structure of your line item data does follow Authorize.Net's standards. Your example indicates the passing of all shopping cart items to a single line item variable (x_line_item).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You must instead pass each individual cart item (line item) to the corresponding x_line_item variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GOOD EXAMPLE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x_line_item="30-02&amp;lt;|&amp;gt;2012 Fire Combo T-Shirt&amp;lt;|&amp;gt;Medium&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y"&lt;/P&gt;&lt;P&gt;x_line_item="30-01&amp;lt;|&amp;gt;2012 Party T-Shirt&amp;lt;|&amp;gt;Extra Large&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BAD EXAMPLE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x_line_item="30-02&amp;lt;|&amp;gt;2012 Fire Combo T-Shirt&amp;lt;|&amp;gt;Medium&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y,30-01&amp;lt;|&amp;gt;2012 Party T-Shirt&amp;lt;|&amp;gt;Extra Large&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;14.95&amp;lt;|&amp;gt;Y"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YOUR COMMENT:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;It works great with 1 item, but fails with the 2nd.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;OUR COMMENT:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Authorize.Net will pick-up the first line item based on the "Bad Example" code (provided by you), but will drop the second line item because it doesn't have a corresponding "x_line_item" parameter to match it to.&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;SOLUTION: &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Pass &lt;STRONG&gt;each&lt;/STRONG&gt; shopping cart item to the x_line_item variable individually, or come up with a secondary function to split the items before passing it to the line item variable. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 13:40:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/6156#M4701</guid>
      <dc:creator>soundcommerce</dc:creator>
      <dc:date>2010-10-08T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/8288#M5681</link>
      <description>&lt;P&gt;How do I get the itemized order information to show up in the Merchant EMail Receipt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&amp;nbsp; Nevermind; found out I could also add merchant definited fields, so I added the information there as well.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2010 20:02:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/8288#M5681</guid>
      <dc:creator>AndrewBucklin</dc:creator>
      <dc:date>2010-12-04T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/9588#M6288</link>
      <description>&lt;P&gt;Why will this not work with variables? I get a 500 error.&amp;nbsp; It works fine if I just enter $ amounts.&amp;nbsp; Thanks. chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$dues = "$_POST['dues']";&lt;BR /&gt;$fund = "$_POST['fund']";&lt;BR /&gt;$award = "$_POST['award']";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$line_items = array(&lt;BR /&gt;"item1&amp;lt;|&amp;gt;Dues&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;$dues&amp;lt;|&amp;gt;Y",&lt;BR /&gt;"item2&amp;lt;|&amp;gt;Fund&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;$fund&amp;lt;|&amp;gt;Y",&lt;BR /&gt;"item3&amp;lt;|&amp;gt;Award&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;$award&amp;lt;|&amp;gt;Y");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach( $line_items as $value )&lt;BR /&gt;&amp;nbsp;{ $data .= "&amp;amp;x_line_item=" . urlencode( $value ); }&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2011 18:05:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/9588#M6288</guid>
      <dc:creator>kinziegreeen</dc:creator>
      <dc:date>2011-01-20T18:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Itemized order info with AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/9976#M6478</link>
      <description>&lt;P&gt;I just tested this out swapping in variables instead of static values and didn't receive any kind of error.&amp;nbsp; However, I do get an error if I try and capture POST values with the code that you are using.&amp;nbsp; I would remove the extra quotation marks in &lt;CODE&gt;$dues = "$_POST['dues']";&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try usingt his format:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;$dues = $_POST['dues'];&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2011 23:19:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Itemized-order-info-with-AIM/m-p/9976#M6478</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2011-01-31T23:19:58Z</dc:date>
    </item>
  </channel>
</rss>

