question

Rob McGarry avatar image
Rob McGarry asked bryanvargas commented

how to update a token with Clover production with php

When trying to update a token with Clover the process stalls and the token is not update or created, it just keeps on loading, nothing else.

auth tokens
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image
bryanvargas answered bryanvargas edited

Can you provide more details on which process in the refresh token you are at. And are there any errors in the console logs?

4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image bryanvargas ♦♦ Rob McGarry commented ·

Have you looked into the CSP: https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html

and what API are you getting the error in the authorized endpoint, token endpoint, or refresh endpoint

0 Likes 0 ·
Rob McGarry avatar image Rob McGarry commented ·

keep getting 404 error message while trying to hit get api

GET https://cloverstatic.com/web/apps/cloverdotcom/_config/prod-na.json?_=1703177475783 404 (Not Found)

0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ Rob McGarry commented ·

SO Clover doesn't use GET for OAuth anymore, and I am unsure what API you are using for OAuth, please follow our guide on this: https://docs.clover.com/docs/refresh-access-tokens

0 Likes 0 ·
Rob McGarry avatar image
Rob McGarry answered bryanvargas commented

when i am update my USD Marchent Id Expiry Date from this URL its working fine

https://www.clover.com/oauth/authorize?client_id=CLOVER_APP_ID&redirect_uri=admin/clover/update_usd.


but when i am trying for CAD it's giving 404 not found the url endpoint

https://www.clover.com/ca/oauth/authorize?client_id=CLOVER_APP_ID&redirect_uri=admin/clover/update_cad.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image bryanvargas ♦♦ commented ·
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community