<?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: Authentication error in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136573#M97901</link>
    <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/211592"&gt;@ArtWork&lt;/a&gt; - Hmmm, interesting. Sometimes you'll get this error if you're not fulling activated.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm curious - have you completely set up your Square&amp;nbsp;account to accept cards? From your Online Dashboard, check the bell icon in the top right corner to see if you have a message to finish&amp;nbsp;setting up.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 19:35:26 GMT</pubDate>
    <dc:creator>JustinC</dc:creator>
    <dc:date>2019-10-23T19:35:26Z</dc:date>
    <item>
      <title>Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136538#M97900</link>
      <description>&lt;DIV id="tinyMceEditorArtWork_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My code is working fine using legacy sandbox details. But I am getting below error when I am using my sandbox details.&lt;BR /&gt;I am using PHP.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL class="children expanded" role="group"&gt;
&lt;LI class="" role="treeitem"&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;category&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;AUTHENTICATION_ERROR&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI role="treeitem"&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;code&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;UNAUTHORIZED&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="selected" tabindex="0" role="treeitem"&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;detail&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;This request could not be authorized.&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ibb.co/KVZMSxF" target="_blank"&gt;https://ibb.co/KVZMSxF&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 15:19:48 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136538#M97900</guid>
      <dc:creator>ArtWork</dc:creator>
      <dc:date>2019-10-23T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136573#M97901</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/211592"&gt;@ArtWork&lt;/a&gt; - Hmmm, interesting. Sometimes you'll get this error if you're not fulling activated.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm curious - have you completely set up your Square&amp;nbsp;account to accept cards? From your Online Dashboard, check the bell icon in the top right corner to see if you have a message to finish&amp;nbsp;setting up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 19:35:26 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136573#M97901</guid>
      <dc:creator>JustinC</dc:creator>
      <dc:date>2019-10-23T19:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136637#M97902</link>
      <description>&lt;P&gt;Hi Justin,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I am using a development account for the square. so I don't have all the data to activate this account.&lt;BR /&gt;once development will complete I will replace my sandbox credentials with client production details.&lt;BR /&gt;Could you assist me with what should I do for using my current sandbox account?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 11:32:29 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136637#M97902</guid>
      <dc:creator>ArtWork</dc:creator>
      <dc:date>2019-10-24T11:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136679#M97903</link>
      <description>&lt;P&gt;Ah, gotcha &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/211592"&gt;@ArtWork&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I ran this by our API team, and they think you may be&amp;nbsp;using the wrong request url. When using the new sandbox, you have to change the url from&amp;nbsp;"squareup.com" &amp;nbsp;to&amp;nbsp;"squareupsandbox.com". Let me know if this helps or if you run into any issues. I'll keep the API Team on standby!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 17:48:05 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136679#M97903</guid>
      <dc:creator>JustinC</dc:creator>
      <dc:date>2019-10-24T17:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136753#M97904</link>
      <description>&lt;P&gt;Hi Justin,&lt;BR /&gt;&lt;BR /&gt;Thanks. According to your suggestion, I have changed the URL&amp;nbsp; for the configuration file as well js file.&lt;BR /&gt;Like :&amp;nbsp;&lt;BR /&gt;protected $host = '&lt;A href="https://connect.squareupsandbox.com" target="_blank"&gt;https://connect.squareupsandbox.com&lt;/A&gt;'; and&amp;nbsp;&lt;A href="https://js.squareupsandbox.com/v2/paymentform" target="_blank"&gt;https://js.squareupsandbox.com/v2/paymentform&lt;/A&gt;&lt;BR /&gt;Now I am able to submit the form but still getting an exception error :&lt;BR /&gt;&lt;SPAN&gt;Exception when calling TransactionApi-&amp;gt;charge:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;object(stdClass)#6 (1) {
  ["errors"]=&amp;gt;
  array(1) {
    [0]=&amp;gt;
    object(stdClass)#7 (3) {
      ["category"]=&amp;gt;
      string(20) "AUTHENTICATION_ERROR"
      ["code"]=&amp;gt;
      string(12) "UNAUTHORIZED"
      ["detail"]=&amp;gt;
      string(37) "This request could not be authorized."
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:36:36 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136753#M97904</guid>
      <dc:creator>ArtWork</dc:creator>
      <dc:date>2019-10-25T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136772#M97905</link>
      <description>&lt;P&gt;Hey! I'm going to reply for Justin here:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So basically unauthorized errors means you're&amp;nbsp;passing an invalid access token. Since you're trying to use sandbox, you&amp;nbsp;need to make sure you’re passing in the sandbox access token.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;When you go to&amp;nbsp;&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fsquareup.com%2Fdashboard%2Fapps%2Fmy-apps" target="_blank"&gt;https://squareup.com/dashboard/apps/my-apps&lt;/A&gt;, click on “Manage app”, make sure the bottom left corner says “Sandbox Settings” (and if not, click the toggle switch to go from “Production Settings” to “Sandbox Settings”), and then copy the “Sandbox access token”. You will need to pass this access token along with the&amp;nbsp;Charge&amp;nbsp;request.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Let me know if this helps!!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:50:53 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Authentication-error/m-p/136772#M97905</guid>
      <dc:creator>AshleyK</dc:creator>
      <dc:date>2019-10-25T15:50:53Z</dc:date>
    </item>
  </channel>
</rss>

