<?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 Adding lineItems in python sdk in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59737#M34315</link>
    <description>&lt;P&gt;Anyone have an example of this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 20:12:09 GMT</pubDate>
    <dc:creator>tobiah</dc:creator>
    <dc:date>2017-09-07T20:12:09Z</dc:date>
    <item>
      <title>Adding lineItems in python sdk</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59737#M34315</link>
      <description>&lt;P&gt;Anyone have an example of this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 20:12:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59737#M34315</guid>
      <dc:creator>tobiah</dc:creator>
      <dc:date>2017-09-07T20:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding lineItems in python sdk</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59741#M34319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@tobiah,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not in front of a computer with Python at this moment, but could you try the following?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# setup individual items
	lineItem1 = apicontractsv1.lineItemType()
	lineItem1.itemId = "12345"
	lineItem1.name = "first"
	lineItem1.description = "Here's the first line item"
	lineItem1.quantity = "2"
	lineItem1.unitPrice = "12.95"
	lineItem2 = apicontractsv1.lineItemType()
	lineItem2.itemId = "67890"
	lineItem2.name = "second"
	lineItem2.description = "Here's the second line item"
	lineItem2.quantity = "3"
	lineItem2.unitPrice = "7.95"

# build the array
	lineItems = apicontractsv1.ArrayOfLineItem()
	lineItems.lineItem.append(lineItem1)
	lineItems.lineItem.append(lineItem2)

# Add the lineItems to whatever variable holds the full transaction request.
	transactionrequest.lineItems = lineItems
&lt;/PRE&gt;
&lt;P&gt;Let me know if it works! If not, I'll get to a Python machine when I get back from my current trip and figure out how it's actually supposed to work.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 21:51:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59741#M34319</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-09-08T21:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding lineItems in python sdk</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59755#M34332</link>
      <description>&lt;P&gt;Update:&amp;nbsp;I got a proper sample made in our sample code repo at&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-python" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-python&lt;/A&gt;. The &lt;A href="https://github.com/AuthorizeNet/sample-code-python/blob/master/PaymentTransactions/charge-credit-card.py" target="_blank"&gt;charge-credit-card.py&lt;/A&gt; sample has now been updated to include examples of setting lineItems.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 00:54:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59755#M34332</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-09-09T00:54:20Z</dc:date>
    </item>
  </channel>
</rss>

