Scratchpad issues

We’re trying to migrate to the new API and testing (PHP):

If we use the access key that’s in Sign In (please note the Production API version is 2023-03-15), we get results:

{
  "errors": [
    {
      "category": "AUTHENTICATION_ERROR",
      "code": "UNAUTHORIZED",
      "detail": "This request could not be authorized."
    }
  ]
}

Can anyone assist with figuring out why our Production Access token is not working on scratchpad?Thanks.

Is the base path URL set to the production URL https://connect.squareup.com ? :slightly_smiling_face:

sorry…the “Sandbox” and “production” are so far up I wasn’t realizing we were testing it in sanbox mode.
thanks for the help!

Glad to hear that solved the issue. :slightly_smiling_face:

sorry just 1 quick question…
Where can we download the square SDK in PHP (where it includes “autoload.php” so we don’t have to use unix to install anything and instead just upload to our webserver) ?

The files/folders we currently have are from years ago and consists of these files below.
Though it seems to work with at least searching for a customer, I’m not sure if it’s fully updated.

square/vendorsrc/.phan
square/vendorsrc/doc
square/vendorsrc/jsonmapper
square/vendorsrc/src
square/vendorsrc/tests
square/vendorsrc/unirest-php

square/vendorsrc/.gitattributes
square/vendorsrc/.gitignore
square/vendorsrc/.travis.yml
square/vendorsrc/autoload.php
square/vendorsrc/CHANGELOG.md
square/vendorsrc/composer.json
square/vendorsrc/LICENSE
square/vendorsrc/phpcs-ruleset.xml
square/vendorsrc/phpunit.xml
square/vendorsrc/README.md

At this time including autoload.php isn’t available in a fully downloadable package with our SDKs. It’s a dependency that need to be added. :slightly_smiling_face:

1 Like