Do I need all of the associated files as well on the server?
Couple of questions:
-
I don’t see this in the PHP example list of files.
require ‘vendor/autoload.php’; -
Is the environment the location ID?
$square_client = new SquareClient([
‘accessToken’ => getenv(‘SQUARE_ACCESS_TOKEN’),
‘environment’ => getenv(‘ENVIRONMENT’),
‘userAgentDetail’ => ‘sample_app_php_payment’, // Remove or replace this detail when building your own app
]); -
does this mean that everything is working as expected in sandbox mode?