<?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: Square Payment Gateway: Request not authorized error in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145051#M94234</link>
    <description>&lt;P&gt;As per your suggestion I have follow all step still error remain same, at a time of listLocation menthod call&lt;BR /&gt;&lt;BR /&gt;//get list of all locations&lt;BR /&gt;var listLocationsResponse = locationsApi.ListLocations();&lt;BR /&gt;&lt;BR /&gt;above method throw exception as mentioned below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Square payment error: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please let me know what can i do&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 09:05:57 GMT</pubDate>
    <dc:creator>amchauhan</dc:creator>
    <dc:date>2019-12-23T09:05:57Z</dc:date>
    <item>
      <title>Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104601#M94228</link>
      <description>&lt;P&gt;Hi Experts!&lt;BR /&gt;&lt;BR /&gt;I am new to square payment gateway. I have a php website where i want to charge a card for payment. I have created account in square and created an application.&amp;nbsp; Now i want to test in sandbox mode, so i do have sandbox access token and location-id&amp;nbsp; so far I am successful in generating the form, but when i submit the form i get the below error: &lt;BR /&gt;&lt;BR /&gt;category&amp;nbsp;&amp;nbsp; &amp;nbsp;AUTHENTICATION_ERROR&lt;BR /&gt;code&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNAUTHORIZED&lt;BR /&gt;detail&amp;nbsp;&amp;nbsp; &amp;nbsp;This request could not be authorized.&lt;BR /&gt;&lt;BR /&gt;in response, So kindly guide me through this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI, i generated the form via below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/square/connect-api-examples/tree/master/templates/web-ui/payment-form/basic" target="_blank"&gt;https://github.com/square/connect-api-examples/tree/master/templates/web-ui/payment-form/basic&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ali&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 14:49:25 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104601#M94228</guid>
      <dc:creator>ahsanali</dc:creator>
      <dc:date>2018-12-27T14:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104602#M94229</link>
      <description>&lt;P&gt;FYI, i copied the error from the response of below url via browser console&lt;BR /&gt;&lt;A href="https://pci-connect.squareup.com/v2/card-nonce?_=1545914[Redacted]" target="_blank"&gt;https://pci-connect.squareup.com/v2/card-nonce?_=1545914[Redacted]&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 12:48:53 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104602#M94229</guid>
      <dc:creator>ahsanali</dc:creator>
      <dc:date>2018-12-27T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104635#M94230</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/145375"&gt;@ahsanali&lt;/a&gt;, I escalated your question to an API Specialist who confirmed that the AUTHENTICATION_ERROR message you received occurs when your &lt;STRONG&gt;Application ID&lt;/STRONG&gt; and &lt;STRONG&gt;Personal Access Token&lt;/STRONG&gt; do not match the information in your Developer Portal. Please make sure your Application ID and Personal Access Token are accurately updated in your &lt;STRONG&gt;sqpaymentform.js &lt;/STRONG&gt;and your &lt;STRONG&gt;process-card files&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Feel free to also view our &lt;A href="https://docs.connect.squareup.com/troubleshooting/troubleshooting?q=troubleshooting#my-api-call-returns-an-authentication-error-error-code" target="_blank"&gt;Developer Documentation&lt;/A&gt;&amp;nbsp;for information on troubleshooting errors.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 17:29:31 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104635#M94230</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2018-12-27T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104700#M94231</link>
      <description>&lt;P&gt;Thanks Helen,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You were correct!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My bad,&lt;BR /&gt;&lt;BR /&gt;added sandbox access token instead of sandbox application id&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 07:10:52 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/104700#M94231</guid>
      <dc:creator>ahsanali</dc:creator>
      <dc:date>2018-12-28T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/144652#M94232</link>
      <description>&lt;P&gt;I also face same issue as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Square payment error: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please let me know how to make sandbox request authorized for testing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 13:21:33 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/144652#M94232</guid>
      <dc:creator>amchauhan</dc:creator>
      <dc:date>2019-12-19T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/144812#M94233</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/230664"&gt;@amchauhan&lt;/a&gt;&amp;nbsp;&amp;nbsp;Did you get a chance to read &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/107"&gt;@Helen&lt;/a&gt; 's Best Answer above?&lt;BR /&gt;&lt;BR /&gt;It looks like she reached out to the API team and posted the solution for this error there!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:55:19 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/144812#M94233</guid>
      <dc:creator>ashc</dc:creator>
      <dc:date>2019-12-20T15:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145051#M94234</link>
      <description>&lt;P&gt;As per your suggestion I have follow all step still error remain same, at a time of listLocation menthod call&lt;BR /&gt;&lt;BR /&gt;//get list of all locations&lt;BR /&gt;var listLocationsResponse = locationsApi.ListLocations();&lt;BR /&gt;&lt;BR /&gt;above method throw exception as mentioned below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Square payment error: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;please let me know what can i do&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 09:05:57 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145051#M94234</guid>
      <dc:creator>amchauhan</dc:creator>
      <dc:date>2019-12-23T09:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145361#M94235</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have configure sandbox application id and sandbox access token of default authorized account and also set return url to square sandbox account but still when LocationApi call, this exception accour&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Square payment error: Error calling ListLocations: {"errors":[{"category":"AUTHENTICATION_ERROR","code":"UNAUTHORIZED","detail":"This request could not be authorized."}]}.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;we can not fetch sandbox account locations through api call please let me know how to resolve this error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 06:45:24 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145361#M94235</guid>
      <dc:creator>amchauhan</dc:creator>
      <dc:date>2019-12-27T06:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145457#M94236</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/230664"&gt;@amchauhan&lt;/a&gt;!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I reached out to the API channel and they said the error you're getting&amp;nbsp;is due to having credentials mismatched or the base path URL not configured to the right environment.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2019 14:19:44 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/145457#M94236</guid>
      <dc:creator>ashc</dc:creator>
      <dc:date>2019-12-28T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/172700#M94237</link>
      <description>&lt;P&gt;Im having the same problem. I've double checked, and even reissued the key&lt;BR /&gt;&lt;BR /&gt;I got fed up and went and tried it on your page&amp;nbsp;&lt;A href="https://developer.squareup.com/explorer/square_2019-12-17/oauth-api/obtain-token" target="_blank"&gt;https://developer.squareup.com/explorer/square_2019-12-17/oauth-api/obtain-token&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Same error. I'm copying and pasting the id and key, as well as the code thats returned from&amp;nbsp;/oauth2/authorize&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that said, the dashboard has malfunctioned SEVERAL times. firstly it was not saving my&amp;nbsp;&lt;SPAN&gt;Redirect URL, I'd add it then try it would error, id come back and it would be cleared out.&lt;BR /&gt;About 6 times i had to enter it before it would save, now thats working.&lt;BR /&gt;DUring testing why this unauth error is coming up, I "replaced token" this also doesnt reflect an update, had to log out then back in two times before it created a new one..&lt;BR /&gt;&lt;BR /&gt;Anyway SAME problem..&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="code-block code--curl" tabindex="0" data-test-code-block-content=""&gt;&lt;CODE&gt;curl https://connect.squareup.com/oauth2/token \
  -X POST \
  -H &lt;SPAN class="hljs-string"&gt;'Square-Version: 2019-12-17'&lt;/SPAN&gt; \
  -H &lt;SPAN class="hljs-string"&gt;'Content-Type: application/json'&lt;/SPAN&gt; \
  -d &lt;SPAN class="hljs-string"&gt;'{
    "client_id": "sq0idp-Lno1QXpjx8Z2Avemg3orUg",
    "client_secret": "DIRECTCOPYANDPASTE",
    "grant_type": "authorization_code",
    "code": "sq0cgp-B2KYptDrmgYoZ3Kii1M1dw"
  }'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="code-block code--json" tabindex="0" data-test-code-block-content=""&gt;&lt;CODE&gt;cache-control: no-cache
content-length: 70
content-type: application/json
date: Sat, 16 May 2020 23:02:53 GMT

&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;{
  &lt;SPAN class="hljs-attr"&gt;"message"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"Not Authorized"&lt;/SPAN&gt;,
  &lt;SPAN class="hljs-attr"&gt;"type"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"service.not_authorized"&lt;/SPAN&gt;
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 May 2020 23:29:34 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/172700#M94237</guid>
      <dc:creator>werdemup</dc:creator>
      <dc:date>2020-05-16T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/222286#M94238</link>
      <description>&lt;P&gt;I'm also having the same issue. Is there any sort of permission that needs to be granted?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:01:20 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/222286#M94238</guid>
      <dc:creator>b_gh_csi</dc:creator>
      <dc:date>2020-11-25T18:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Square Payment Gateway: Request not authorized error</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/222634#M94239</link>
      <description>&lt;P&gt;&lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/165359"&gt;@ashc&lt;/a&gt; gave some insight provided by the API Team above. If you still need help, reach out to our&amp;nbsp;&lt;A href="https://squ.re/2LW3Gz3" target="_blank"&gt;Support Team&lt;/A&gt;. From there, your case will be escalated to our API Team.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 20:00:15 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/222634#M94239</guid>
      <dc:creator>JustinC</dc:creator>
      <dc:date>2020-11-26T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/233537#M94240</link>
      <description>&lt;P&gt;Hello, Helen.&lt;/P&gt;
&lt;P&gt;I am stuck with problems and will be glad if you help me.&lt;/P&gt;
&lt;P&gt;I am new to square and my problem is "request not authorized error".&lt;/P&gt;
&lt;P&gt;I followed the steps of documentation, and if I click Pay button, then the javascript alerts "request not authorized error.".&lt;/P&gt;
&lt;P&gt;Please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 09:20:11 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/233537#M94240</guid>
      <dc:creator>Crystal-Moon</dc:creator>
      <dc:date>2021-01-12T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Request not authorized</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/233590#M94241</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/342704"&gt;@Crystal-Moon&lt;/a&gt;!&amp;nbsp;Thanks for reaching out. Make sure you have a completely verified and set up account that is approved to accept credit cards. If your identity has not been approved, then you will also receive that error.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 14:04:19 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Square-Payment-Gateway-Request-not-authorized-error/m-p/233590#M94241</guid>
      <dc:creator>AshleyK</dc:creator>
      <dc:date>2021-01-12T14:04:19Z</dc:date>
    </item>
  </channel>
</rss>

