Re: Square Payment Module for Zen Cart [Support Thread]
Recent E-mail from square
We are making a change to how our OAuth service handles the redirect URL. Currently the redirect URL configured in the Developer Dashboard only needs to match a subset of the URL passed in the authorization request.
Current State Example
If the redirect URL in the Developer Dashboard is configured to:
https://example.com/
And the redirect_uri parameter in the authorization request is:
https://connect.squareup.com/oauth2/...oauth-redirect
Then the request succeeds because the first part of the redirect_uri parameter matches the configured redirect URL.
After February 14th, 2022, the redirect URL sent in the authorization request must exactly match the redirect URL in the Developer Dashboard or it will error.
Exact Match Example
If the redirect_uri parameter in the authorization request is:
https://connect.squareup.com/oauth2/...oauth-redirect
Then the redirect URl in the Developer Dashboard must be configured to:
https://example.com/oauth-redirect
*************************
Assume as long as we have correctly set up our "Redirect URL" field on square, to https://your_store_url.com/square_handler.php including any subdirectories then all will be well.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Bookmarks