question

vishal388 avatar image
vishal388 asked ·

Unable to get access token for Sandbox

I am following the steps mentioned here: https://docs.clover.com/docs/using-oauth-20

As per step6: "Return to REST Configuration and then click Example OAuth Request to retrieve a sample access_token from your browser URL for your test merchant. "


However in my case, it shows URL like this:

1611636969454.png


All I am trying to do is to resolve the CORS error below. So far I was using token generated from Setup--> API Token., which I realized after reading few articles that may be contributing to the CORS error.

1611636914814.png


Any help in resolving CORS error will be appreciated.



semi-integrationsClover FlexOAuthaccess token
1611636914814.png (20.3 KiB)
1611636969454.png (8.7 KiB)
10 |2000 characters needed characters left characters exceeded

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

1 Answer

David Marginian avatar image
David Marginian answered ·

In order to obtain a token, you need to have the app installed to your test merchant. Below step 6 - "For a new test merchant account, you are redirected to the merchant dashboard. Click Connect to install your sandbox app and complete the example OAuth flow."

11 comments
10 |2000 characters needed characters left characters exceeded

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

Hi David


I already had a merchant account, however I got the new flex device that I am trying to connect the app to. App was also previously created and was working with another clover device we were testing with in the past.

How do I regenerate the token?

0 Likes 0 ·

Yes, I understand you have a test merchant. I am saying your app needs to be INSTALLED on the merchant (https://docs.clover.com/docs/merchant-interaction#installing-your-test-app) before you can obtain a token. If you need more assistance you will need to provide your app id and merchant id.

0 Likes 0 ·
vishal388 avatar image vishal388 David Marginian ♦♦ ·

Got it. I tried that as well and do not see connect button. Is it because I am on a free plan and need to upgrade to either Lite/Bundle?

1611669587120.png

0 Likes 0 ·
1611669587120.png (37.5 KiB)
Show more comments

Welcome to the
Clover Developer Community