<?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>thread Re: How to add a description to square line item? in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/139054#M97886</link>
    <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/185923"&gt;@CHN&lt;/a&gt; - Thanks for stopping by!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I talked with our API Team about this who informed me that adding an item description in the&amp;nbsp;checkout API&amp;nbsp;isn't available. I've tagged this has a feature request and moved you post to the API Board so our Product Team can keep an eye out if anything changes!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 17:17:44 GMT</pubDate>
    <dc:creator>JustinC</dc:creator>
    <dc:date>2019-11-14T17:17:44Z</dc:date>
    <item>
      <title>How to add a description to square line item?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/138769#M97885</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;
&lt;DIV class="js-voting-container grid fd-column ai-stretch gs4 fc-black-200" data-post-id="58828285"&gt;
&lt;DIV class="js-favorite-count mt8" data-value=""&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;I'm having some trouble to add a description after the product name in Checkout API from Square.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="js-favorite-count mt8" data-value=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="post-text"&gt;
&lt;P&gt;This is how I add an item. (It works)&lt;/P&gt;
&lt;PRE class="lang-php prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;    $price &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; \SquareConnect\Model\Money&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    $price&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setAmount&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;((&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;str_replace&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"."&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="str"&gt;""&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; $_SESSION&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'shippingCost'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]));&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    $price&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setCurrency&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'CAD'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;

    &lt;SPAN class="com"&gt;//Create the line item and set details&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    $book &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; \SquareConnect\Model\CreateOrderRequestLineItem&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    $book&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setName&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$_SESSION&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'language'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;][&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'shipping'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;].&lt;/SPAN&gt;&lt;SPAN class="str"&gt;" ("&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$_SESSION&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'shippingService'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;].&lt;/SPAN&gt;&lt;SPAN class="str"&gt;")"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;

    &lt;SPAN class="com"&gt;//DESCRIPTION HERE&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;

    $book&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setQuantity&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;((&lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;string&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; count&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$_SESSION&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'products'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;]));&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    $book&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;setBasePriceMoney&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$price&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
    array_push&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;$lineItems&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; $book&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;);&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is a reference of what I want to achieve.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://imgur.com/a/PwSNqQj" rel="nofollow noreferrer" target="_blank"&gt;Image&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Nov 2019 23:46:00 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/138769#M97885</guid>
      <dc:creator>CHN</dc:creator>
      <dc:date>2019-11-12T23:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a description to square line item?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/139054#M97886</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/185923"&gt;@CHN&lt;/a&gt; - Thanks for stopping by!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I talked with our API Team about this who informed me that adding an item description in the&amp;nbsp;checkout API&amp;nbsp;isn't available. I've tagged this has a feature request and moved you post to the API Board so our Product Team can keep an eye out if anything changes!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 17:17:44 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/139054#M97886</guid>
      <dc:creator>JustinC</dc:creator>
      <dc:date>2019-11-14T17:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a description to square line item?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/234325#M97887</link>
      <description>&lt;P&gt;Set the item name under "name"&lt;/P&gt;
&lt;P&gt;Set the description under that specific line item "note". It worked perfectly for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 13:22:14 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/How-to-add-a-description-to-square-line-item/m-p/234325#M97887</guid>
      <dc:creator>ronaldvaughnjr</dc:creator>
      <dc:date>2021-01-14T13:22:14Z</dc:date>
    </item>
  </channel>
</rss>

