<?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 Payment code ALWAYS ends in Caught Exception in Payments Troubleshooting</title>
    <link>https://community.squareup.com/t5/Payments-Troubleshooting/PHP-Payment-code-ALWAYS-ends-in-Caught-Exception/m-p/144838#M23713</link>
    <description>&lt;P&gt;Thanks for posting &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/230563"&gt;@moltenBubz&lt;/a&gt;! Since this is a pretty specific API question, I have sent this directly to our Customer Success API team. You should hear back over email soon. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 17:43:42 GMT</pubDate>
    <dc:creator>AshleyK</dc:creator>
    <dc:date>2019-12-20T17:43:42Z</dc:date>
    <item>
      <title>PHP Payment code ALWAYS ends in Caught Exception</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/PHP-Payment-code-ALWAYS-ends-in-Caught-Exception/m-p/144588#M23712</link>
      <description>&lt;P&gt;I'm creating a website on which users can pay with a credit card.&amp;nbsp; I downloaded the php_payment code from github.&amp;nbsp; I enter the card info, but when I submit, it always says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Caught Exception!&lt;/P&gt;
&lt;P&gt;Response body:&lt;/P&gt;
&lt;P&gt;Null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Response Headers:&lt;/P&gt;
&lt;P&gt;Null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the sandbox settings, ID and token.&amp;nbsp; I've recreated the project a couple times but no luck.&amp;nbsp; This issue has already been asked here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://www.sellercommunity.com/t5/Questions-How-To/PHP-code-always-ends-with-caught-exception/td-p/39528" target="_blank" rel="noopener"&gt;https://www.sellercommunity.com/t5/Questions-How-To/PHP-code-always-ends-with-caught-exception/td-p/39528&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the solution doesn't work for me.&amp;nbsp; I am completely stumped.&amp;nbsp; Can anybody help me out please??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to test on Localhost, os: windows, browser: chrome. I've used the server started from the command line as well as MAMP.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 13:58:48 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/PHP-Payment-code-ALWAYS-ends-in-Caught-Exception/m-p/144588#M23712</guid>
      <dc:creator>moltenBubz</dc:creator>
      <dc:date>2025-09-20T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: PHP Payment code ALWAYS ends in Caught Exception</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/PHP-Payment-code-ALWAYS-ends-in-Caught-Exception/m-p/144838#M23713</link>
      <description>&lt;P&gt;Thanks for posting &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/230563"&gt;@moltenBubz&lt;/a&gt;! Since this is a pretty specific API question, I have sent this directly to our Customer Success API team. You should hear back over email soon. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 17:43:42 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/PHP-Payment-code-ALWAYS-ends-in-Caught-Exception/m-p/144838#M23713</guid>
      <dc:creator>AshleyK</dc:creator>
      <dc:date>2019-12-20T17:43:42Z</dc:date>
    </item>
  </channel>
</rss>

