<?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 submitting itemized order information in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-submitting-itemized-order-information/m-p/17482#M9765</link>
    <description>&lt;P&gt;1) Download the latest version of the Authorize.net PHP SDK.&lt;/P&gt;&lt;P&gt;2) Look in the doc folder for a file called AIM.markdown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PHP layer on top of the XML is fairly simple to learn how to use. You should never have to mess with the sort of thing you're trying to do here, rather you'd be doing something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$auth-&amp;gt;addLineItem(
  'item1', // Item Id
  'Golf tees', // Item Name
  'Blue tees', // Item Description
  '2', // Item Quantity
  '5.00', // Item Unit Price
  'N' // Item taxable
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2011 08:42:42 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-09-30T08:42:42Z</dc:date>
    <item>
      <title>AIM submitting itemized order information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-submitting-itemized-order-information/m-p/17458#M9755</link>
      <description>&lt;P&gt;I can't figure out how to submit itemized information. The documentation says authnet handles delimited information with the delimter as "&amp;lt;|&amp;gt;".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using a modified version of john conde's php authorize.net class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my script that sets up the transaction i have this snippet:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$items = "item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y";﻿&lt;/P&gt;&lt;P&gt;$this-&amp;gt;authnetaim-&amp;gt;setParameter("x_line_item", $items);﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works. But i can't figure out how to submit multiple items.&amp;nbsp;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the authnet class:&lt;/P&gt;&lt;P&gt;function setParameter($field = '', $value = null)&lt;/P&gt;&lt;P&gt;{$this-&amp;gt;params[$field] = $value;}﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And all the parameters get submitted via:&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($this-&amp;gt;params));﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody got any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$items = "item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y";﻿&lt;/P&gt;&lt;P&gt;$items .= "&amp;amp;x_line_item=item1&amp;lt;|&amp;gt;Tennis Raquet&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y";﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i get the following error:&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: arial, serif; line-height: 12px;"&gt;&lt;FONT color="#000000"&gt;Line item 1 is invalid. (A value submitted in x_line_item for the item referenced is invalid.)&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 16:38:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-submitting-itemized-order-information/m-p/17458#M9755</guid>
      <dc:creator>dadamssg</dc:creator>
      <dc:date>2011-09-29T16:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: AIM submitting itemized order information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-submitting-itemized-order-information/m-p/17482#M9765</link>
      <description>&lt;P&gt;1) Download the latest version of the Authorize.net PHP SDK.&lt;/P&gt;&lt;P&gt;2) Look in the doc folder for a file called AIM.markdown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PHP layer on top of the XML is fairly simple to learn how to use. You should never have to mess with the sort of thing you're trying to do here, rather you'd be doing something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$auth-&amp;gt;addLineItem(
  'item1', // Item Id
  'Golf tees', // Item Name
  'Blue tees', // Item Description
  '2', // Item Quantity
  '5.00', // Item Unit Price
  'N' // Item taxable
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 08:42:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-submitting-itemized-order-information/m-p/17482#M9765</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-30T08:42:42Z</dc:date>
    </item>
  </channel>
</rss>

