<?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 Problem with setting line items in the CIM api in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-setting-line-items-in-the-CIM-api/m-p/16624#M9364</link>
    <description>&lt;P&gt;I am using the php_sdk, and for some weird reason, I am getting an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error&lt;/P&gt;&lt;PRE&gt;Error: Error &lt;BR /&gt;        Message: The element 'profileTransAuthCapture' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'lineItems' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'amount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;BR /&gt;        E00003&lt;/PRE&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;And a dump of the transaction object&lt;/P&gt;&lt;PRE&gt;AuthorizeNetTransaction Object&lt;BR /&gt;(&lt;BR /&gt;    [amount] =&amp;gt; 0&lt;BR /&gt;    [tax] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [shipping] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [duty] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [lineItems] =&amp;gt; Array&lt;BR /&gt;        (&lt;BR /&gt;            [0] =&amp;gt; AuthorizeNetLineItem Object&lt;BR /&gt;                (&lt;BR /&gt;                    [itemId] =&amp;gt; 3&lt;BR /&gt;                    [name] =&amp;gt; Gold(recurring, overdue)&lt;BR /&gt;                    [description] =&amp;gt; sda sd asf sadgasdasdas gbdg dfgad sad &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Under Package:Package3&lt;BR /&gt;                    [quantity] =&amp;gt; &lt;BR /&gt;                    [unitPrice] =&amp;gt; 0&lt;BR /&gt;                    [taxable] =&amp;gt; &lt;BR /&gt;                )&lt;BR /&gt;&lt;BR /&gt;            [1] =&amp;gt; AuthorizeNetLineItem Object&lt;BR /&gt;                (&lt;BR /&gt;                    [itemId] =&amp;gt; 7&lt;BR /&gt;                    [name] =&amp;gt; Weekly Hours 2(recurring, overdue)&lt;BR /&gt;                    [description] =&amp;gt; sad asd as fasdf gfdg dfgsadf asd sd &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Under Package:Package3&lt;BR /&gt;                    [quantity] =&amp;gt; &lt;BR /&gt;                    [unitPrice] =&amp;gt; 0&lt;BR /&gt;                    [taxable] =&amp;gt; &lt;BR /&gt;                )&lt;BR /&gt;&lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [customerProfileId] =&amp;gt; 4407284&lt;BR /&gt;    [customerPaymentProfileId] =&amp;gt; 3881219&lt;BR /&gt;    [customerShippingAddressId] =&amp;gt; &lt;BR /&gt;    [creditCardNumberMasked] =&amp;gt; &lt;BR /&gt;    [bankRoutingNumberMasked] =&amp;gt; &lt;BR /&gt;    [bankAccountNumberMasked] =&amp;gt; &lt;BR /&gt;    [order] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [invoiceNumber] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;            [purchaseOrderNumber] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [taxExempt] =&amp;gt; &lt;BR /&gt;    [recurringBilling] =&amp;gt; &lt;BR /&gt;    [cardCode] =&amp;gt; &lt;BR /&gt;    [splitTenderId] =&amp;gt; &lt;BR /&gt;    [approvalCode] =&amp;gt; &lt;BR /&gt;    [transId] =&amp;gt; &lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2011 10:50:28 GMT</pubDate>
    <dc:creator>mps_sudipta</dc:creator>
    <dc:date>2011-09-01T10:50:28Z</dc:date>
    <item>
      <title>Problem with setting line items in the CIM api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-setting-line-items-in-the-CIM-api/m-p/16624#M9364</link>
      <description>&lt;P&gt;I am using the php_sdk, and for some weird reason, I am getting an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error&lt;/P&gt;&lt;PRE&gt;Error: Error &lt;BR /&gt;        Message: The element 'profileTransAuthCapture' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'lineItems' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'amount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;BR /&gt;        E00003&lt;/PRE&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;And a dump of the transaction object&lt;/P&gt;&lt;PRE&gt;AuthorizeNetTransaction Object&lt;BR /&gt;(&lt;BR /&gt;    [amount] =&amp;gt; 0&lt;BR /&gt;    [tax] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [shipping] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [duty] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [amount] =&amp;gt; &lt;BR /&gt;            [name] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [lineItems] =&amp;gt; Array&lt;BR /&gt;        (&lt;BR /&gt;            [0] =&amp;gt; AuthorizeNetLineItem Object&lt;BR /&gt;                (&lt;BR /&gt;                    [itemId] =&amp;gt; 3&lt;BR /&gt;                    [name] =&amp;gt; Gold(recurring, overdue)&lt;BR /&gt;                    [description] =&amp;gt; sda sd asf sadgasdasdas gbdg dfgad sad &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Under Package:Package3&lt;BR /&gt;                    [quantity] =&amp;gt; &lt;BR /&gt;                    [unitPrice] =&amp;gt; 0&lt;BR /&gt;                    [taxable] =&amp;gt; &lt;BR /&gt;                )&lt;BR /&gt;&lt;BR /&gt;            [1] =&amp;gt; AuthorizeNetLineItem Object&lt;BR /&gt;                (&lt;BR /&gt;                    [itemId] =&amp;gt; 7&lt;BR /&gt;                    [name] =&amp;gt; Weekly Hours 2(recurring, overdue)&lt;BR /&gt;                    [description] =&amp;gt; sad asd as fasdf gfdg dfgsadf asd sd &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Under Package:Package3&lt;BR /&gt;                    [quantity] =&amp;gt; &lt;BR /&gt;                    [unitPrice] =&amp;gt; 0&lt;BR /&gt;                    [taxable] =&amp;gt; &lt;BR /&gt;                )&lt;BR /&gt;&lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [customerProfileId] =&amp;gt; 4407284&lt;BR /&gt;    [customerPaymentProfileId] =&amp;gt; 3881219&lt;BR /&gt;    [customerShippingAddressId] =&amp;gt; &lt;BR /&gt;    [creditCardNumberMasked] =&amp;gt; &lt;BR /&gt;    [bankRoutingNumberMasked] =&amp;gt; &lt;BR /&gt;    [bankAccountNumberMasked] =&amp;gt; &lt;BR /&gt;    [order] =&amp;gt; stdClass Object&lt;BR /&gt;        (&lt;BR /&gt;            [invoiceNumber] =&amp;gt; &lt;BR /&gt;            [description] =&amp;gt; &lt;BR /&gt;            [purchaseOrderNumber] =&amp;gt; &lt;BR /&gt;        )&lt;BR /&gt;&lt;BR /&gt;    [taxExempt] =&amp;gt; &lt;BR /&gt;    [recurringBilling] =&amp;gt; &lt;BR /&gt;    [cardCode] =&amp;gt; &lt;BR /&gt;    [splitTenderId] =&amp;gt; &lt;BR /&gt;    [approvalCode] =&amp;gt; &lt;BR /&gt;    [transId] =&amp;gt; &lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 10:50:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-setting-line-items-in-the-CIM-api/m-p/16624#M9364</guid>
      <dc:creator>mps_sudipta</dc:creator>
      <dc:date>2011-09-01T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with setting line items in the CIM api</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-setting-line-items-in-the-CIM-api/m-p/16630#M9367</link>
      <description>&lt;P&gt;Would be helpful to see the code you used to create this, and are you using a recent version of the API? If I had to guess, though, I'd say that the error is being caused by elements not containing values and/or not being in the specific order that Authorize.net expects. Your amount is 0, for instance, so it could be skipping that and then running into lineItems, which isn't expected until after amount. I'm only theorizing, though.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 12:01:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-with-setting-line-items-in-the-CIM-api/m-p/16630#M9367</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-01T12:01:17Z</dc:date>
    </item>
  </channel>
</rss>

