<?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: Sandbox error when testing in Payments Troubleshooting</title>
    <link>https://community.squareup.com/t5/Payments-Troubleshooting/Sandbox-error-when-testing/m-p/160109#M22077</link>
    <description>&lt;P&gt;If you’re sure the access token you're using is correct, then the most likely explanation here is that you have not set the correct host domain. For sandbox, you'll&amp;nbsp;need to make sure to use &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareupsandbox.com" target="_blank"&gt;https://connect.squareupsandbox.com&lt;/A&gt;&amp;nbsp;- instead of &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com" target="_blank"&gt;https://connect.squareup.com&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This error only happens when the access token is incorrect, so it sounds like you may be using sandbox credentials against production, &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/263504"&gt;@ekyoung&lt;/a&gt;.&amp;nbsp;Let us know here if anything else come up!&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 17:32:12 GMT</pubDate>
    <dc:creator>Valentina</dc:creator>
    <dc:date>2020-03-31T17:32:12Z</dc:date>
    <item>
      <title>Sandbox error when testing</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/Sandbox-error-when-testing/m-p/159406#M22076</link>
      <description>&lt;P&gt;When I go to checkout this is the error I receive:&lt;/P&gt;
&lt;P&gt;Square Exception when calling CheckoutApi-&amp;gt;createCheckout:[HTTP/2 401] {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have double checked my Sandbox Location ID and Sandbox Access Token and those are correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 13:33:02 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/Sandbox-error-when-testing/m-p/159406#M22076</guid>
      <dc:creator>ekyoung</dc:creator>
      <dc:date>2025-09-20T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox error when testing</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/Sandbox-error-when-testing/m-p/160109#M22077</link>
      <description>&lt;P&gt;If you’re sure the access token you're using is correct, then the most likely explanation here is that you have not set the correct host domain. For sandbox, you'll&amp;nbsp;need to make sure to use &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareupsandbox.com" target="_blank"&gt;https://connect.squareupsandbox.com&lt;/A&gt;&amp;nbsp;- instead of &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fconnect.squareup.com" target="_blank"&gt;https://connect.squareup.com&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;This error only happens when the access token is incorrect, so it sounds like you may be using sandbox credentials against production, &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/263504"&gt;@ekyoung&lt;/a&gt;.&amp;nbsp;Let us know here if anything else come up!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 17:32:12 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/Sandbox-error-when-testing/m-p/160109#M22077</guid>
      <dc:creator>Valentina</dc:creator>
      <dc:date>2020-03-31T17:32:12Z</dc:date>
    </item>
  </channel>
</rss>

