hi,
I followed the guide here
https://developer.squareup.com/docs/oauth-api/walkthrough
on callback.php from the download file (GitHub - square/connect-api-examples: Code samples demonstrating the functionality of the Square Connect API)
always leaves me with this error
Error Processing Request: obtainToken failed! MISSING_REQUIRED_PARAMETER INVALID_REQUEST_ERROR missing required parameter ‘client_secret’
in callback.php file, it has
$body = new ObtainTokenRequest(
getenv(‘SQ_APPLICATION_ID’),
getenv(‘SQ_APPLICATION_SECRET’),
$body_grantType
);
$body->setCode($authorizationCode);
and then passes it through
$response = $oauthApi->obtainToken($body);
so I am not sure why it’s not receiving the client_secret