<?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 Ruby authorize-net LineItem and TRANSACTION_FIELDS mapping mismatch in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-authorize-net-LineItem-and-TRANSACTION-FIELDS-mapping/m-p/29318#M15406</link>
    <description>&lt;P&gt;Gem Version: 1.5.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using authorize-net 1.5.2 gem to create transaction requests. When trying to create a transaction using an order with line items, the follow error occurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   
The element 'lineItems' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'unitPrice' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P&gt;However, inspection of the line item show that the price is set.&amp;nbsp; The problem occurs because the symbol key for the price in LineItem does not make the symbol key in TRANSACTION_FIELDS.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In AuthorizeNet::LineItem, the key is &lt;FONT face="courier new,courier"&gt;:line_item_price&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/LineItem#to_hash-instance_method"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/LineItem#to_hash-instance_method&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please click the View Source link to see the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In AuthorizeNet::CIM::Fields::TRANSACTION_FIELDS, the key is &lt;FONT face="courier new,courier"&gt;:line_item_unit_price&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Fields"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a fix for this in the next release of the gem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 22:16:05 GMT</pubDate>
    <dc:creator>richardlee_viz</dc:creator>
    <dc:date>2012-08-30T22:16:05Z</dc:date>
    <item>
      <title>Ruby authorize-net LineItem and TRANSACTION_FIELDS mapping mismatch</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-authorize-net-LineItem-and-TRANSACTION-FIELDS-mapping/m-p/29318#M15406</link>
      <description>&lt;P&gt;Gem Version: 1.5.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using authorize-net 1.5.2 gem to create transaction requests. When trying to create a transaction using an order with line items, the follow error occurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   
The element 'lineItems' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'unitPrice' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P&gt;However, inspection of the line item show that the price is set.&amp;nbsp; The problem occurs because the symbol key for the price in LineItem does not make the symbol key in TRANSACTION_FIELDS.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In AuthorizeNet::LineItem, the key is &lt;FONT face="courier new,courier"&gt;:line_item_price&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/LineItem#to_hash-instance_method"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/LineItem#to_hash-instance_method&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please click the View Source link to see the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In AuthorizeNet::CIM::Fields::TRANSACTION_FIELDS, the key is &lt;FONT face="courier new,courier"&gt;:line_item_unit_price&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Fields"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a fix for this in the next release of the gem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:16:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ruby-authorize-net-LineItem-and-TRANSACTION-FIELDS-mapping/m-p/29318#M15406</guid>
      <dc:creator>richardlee_viz</dc:creator>
      <dc:date>2012-08-30T22:16:05Z</dc:date>
    </item>
  </channel>
</rss>

