<?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: Bug - PHP SDK CreateCheckoutRequest does not capture the &amp;quot;taxes&amp;quot; and &amp;quot;discounts&amp;amp;q in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/45499#M94382</link>
    <description>&lt;P&gt;Updating my PHP SDK fixed the issues. The latest version has these features.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 16:05:56 GMT</pubDate>
    <dc:creator>Tapio</dc:creator>
    <dc:date>2017-08-09T16:05:56Z</dc:date>
    <item>
      <title>Bug - PHP SDK CreateCheckoutRequest does not capture the "taxes" and "discounts" data</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/41255#M94381</link>
      <description>&lt;P&gt;Hello, I am using the latest version of the PHP SDK and am following the Square API&amp;nbsp;guide &lt;A href="https://docs.connect.squareup.com/api/connect/v2#navsection-checkout" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;I am creating a &lt;EM&gt;CreateCheckoutRequest&lt;/EM&gt;&amp;nbsp;class and am populating the "order" data&amp;nbsp;using &lt;EM&gt;CreateOrderRequestOrder&lt;/EM&gt;&amp;nbsp;class with &lt;EM&gt;CreateOrderRequestLineItem.&lt;/EM&gt;&amp;nbsp;The checkout API has been working fine until I attempted to implement taxes. According to the guide, taxes should be a multi-demensional array passed in &lt;EM&gt;CreateOrderRequestOrder&lt;/EM&gt; and/or &lt;EM&gt;CreateOrderRequestLineItem&amp;nbsp;&lt;/EM&gt;(in the PHP SDK these classes represent the "order" element which contains "line_items" elements). However, this data is omitted when the class is instantiated. Upon inspection of the classes I do not see any data setters for &lt;STRONG&gt;&lt;U&gt;taxes&lt;/U&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;U&gt;discounts&lt;/U&gt;&lt;/STRONG&gt;. The class definition for CreateOrderRequestOrder includes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Note taxes and discounts are missing)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;/** &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  * Array of attributes where the key is the local name, and the value is the original name&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  * &lt;/SPAN&gt;&lt;SPAN&gt;@var &lt;/SPAN&gt;&lt;SPAN&gt;string[] &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  */&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;static &lt;/SPAN&gt;&lt;SPAN&gt;$attributeMap &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;array&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'reference_id' &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;'reference_id'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;'line_items' &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;'line_items'&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a bug or am I missing something? If the SDK does not support this functionality I will have to build HTTP requests like the V1 API uses. Please let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 21:11:51 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/41255#M94381</guid>
      <dc:creator>Tapio</dc:creator>
      <dc:date>2017-06-23T21:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug - PHP SDK CreateCheckoutRequest does not capture the "taxes" and "discounts&amp;q</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/45499#M94382</link>
      <description>&lt;P&gt;Updating my PHP SDK fixed the issues. The latest version has these features.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:05:56 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/45499#M94382</guid>
      <dc:creator>Tapio</dc:creator>
      <dc:date>2017-08-09T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bug - PHP SDK CreateCheckoutRequest does not capture the "taxes" and "discounts&amp;a</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/45504#M94383</link>
      <description>&lt;P&gt;Thanks for the update,&amp;nbsp;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/17578"&gt;@Tapio&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:24:38 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Bug-PHP-SDK-CreateCheckoutRequest-does-not-capture-the-quot/m-p/45504#M94383</guid>
      <dc:creator>Kpay</dc:creator>
      <dc:date>2017-08-09T16:24:38Z</dc:date>
    </item>
  </channel>
</rss>

