So I've been tracing this problem of the Access Token Needed. I put in a lot of error_log statements to get an idea.
After some thought, I went out to the Square Developer page for my App. On the Credentials section, I changed the API Version to:
Your API Version
2018-12-05 (15 versions behind)
Which is what I found the module was written to on line 36 of "includes/modules/square.php":
Code:
protected $SquareApiVersion = '2018-12-05';
That got a log file generated when I tried the green 'Click here to log in and Authorize your account' button in the payment module configuration (Edited to remove the token data):
Code:
[20-Feb-2020 18:39:43 America/Chicago] SQUARE TOKEN REQUEST - auth code for exchange: sq0cgp-(data removed for security)
Array
(
[ code] => sq0cgp-(data removed for security)
[response_type] => code
[state] => 5e4f25bc0e298
[main_page] => index
)
But the module is still reporting '(Access Token needed)'.
Bookmarks