question

smercer avatar image
smercer asked smercer answered

500 on oauth

When trying to follow the oauth instructions from clover. I take the code that is returned from merchangt login and send that back to clover in the appropriate route and getting a 500 error return from that route. here the oauth url is the sandbox base url.

${ OAuthURL } /oauth/token?client_id= ${ appId } &client_secret= ${ appSecret } &code= ${ code }


REST APIOAuthAPI Token
10 |2000

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

David Marginian avatar image
David Marginian Deactivated answered

Is this happening on Sandbox? In sandbox you can't perform the authorization step. You will need to install the app (https://docs.clover.com/docs/merchant-interaction#installing-your-test-app) and then trigger the oauth flow by selecting your app from the merchant's dashboard.

10 |2000

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

smercer avatar image
smercer answered

Yes it is on sandbox but i can oauth in through my app. I found out i was using a post instead of a get and that was the only issue. Thanks

10 |2000

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

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