<?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: PHP Square Payment integration in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39497#M94517</link>
    <description>&lt;P&gt;I'm just getting started with this, but the price to be charged is in the $request_body array they provide as a sample. &amp;nbsp;In my particular case for this, I have a single price and only one item, so I've hard coded it. &amp;nbsp;For most, I imagine you'd populate a $_POST or $_SESSION var and enter it there. &amp;nbsp;Mine looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$request_body = array (
  "card_nonce" =&amp;gt; $_SESSION['nonce'],
  "amount_money" =&amp;gt; array (
    "amount" =&amp;gt; 4999, // pennies!
    "currency" =&amp;gt; "USD"
  ),
  "idempotency_key" =&amp;gt; $idempotencyKey
);&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 12:27:03 GMT</pubDate>
    <dc:creator>rsleventhal</dc:creator>
    <dc:date>2017-06-01T12:27:03Z</dc:date>
    <item>
      <title>PHP Square Payment integration</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39291#M94515</link>
      <description>&lt;P&gt;I got my key and all and it appears to work for the crappy demo they provide but one major thing they leave off is the darn price field and how to take the actual payment with a PRICE not just verifying a card with test billing codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to I truely implement this into my web app using that demo(adding to or what not)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 16:18:13 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39291#M94515</guid>
      <dc:creator>wgc</dc:creator>
      <dc:date>2017-05-31T16:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Square Payment integration</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39430#M94516</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/56665"&gt;@wgc&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Sorry for the late reply.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
Were you able to get everything working properly?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If not, try searching&amp;nbsp;in the &lt;A href="https://stackoverflow.com/questions" target="_blank"&gt;Stack Overflow Questions Board&lt;/A&gt;, as there might be a fellow Square Seller that had the same issue but was able to resolve it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 16:23:50 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39430#M94516</guid>
      <dc:creator>EJ_</dc:creator>
      <dc:date>2017-05-31T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Square Payment integration</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39497#M94517</link>
      <description>&lt;P&gt;I'm just getting started with this, but the price to be charged is in the $request_body array they provide as a sample. &amp;nbsp;In my particular case for this, I have a single price and only one item, so I've hard coded it. &amp;nbsp;For most, I imagine you'd populate a $_POST or $_SESSION var and enter it there. &amp;nbsp;Mine looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;$request_body = array (
  "card_nonce" =&amp;gt; $_SESSION['nonce'],
  "amount_money" =&amp;gt; array (
    "amount" =&amp;gt; 4999, // pennies!
    "currency" =&amp;gt; "USD"
  ),
  "idempotency_key" =&amp;gt; $idempotencyKey
);&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 12:27:03 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/PHP-Square-Payment-integration/m-p/39497#M94517</guid>
      <dc:creator>rsleventhal</dc:creator>
      <dc:date>2017-06-01T12:27:03Z</dc:date>
    </item>
  </channel>
</rss>

