question

Chris H avatar image
Chris H asked ·

kinda struggling with the oauth flow for a client app

I want to write a client app where i can create an order, read order info, and then pay via my client app, say for example a personal android device. I understand the fact i need call back url and i have a controller built already to handle that. My problem is I'm still a little fuzzy on the flow. I followed the directions here: https://www.youtube.com/watch?v=6riNP_wlKcU&list=P...

The flow is throwing me off a bit. In order to get an access token why do i have to initiate the callback from a Clover app running on my terminal. How can I initiate the call to the Clover api for the "code" so that i can build my url to grab my my access_token. I been digging on this for a while. What am I missing?
OAuth
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

chanel avatar image
chanel answered ·
We have written documentation that describe the OAuth process step-by-step that could be of use to you. In addition to the code example from that video, we have another Python example that may help.

Initiating the callback from the app on your local system is meant to replicate when a merchant goes to your live site. When a user goes to your website, you'll need to determine if they're a valid merchant (who has installed your app). You'll do this by redirecting them to https://apisandbox.dev.clover.com/oauth/authorize?client_id={AppID}
Share
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.

Welcome to the
Clover Developer Community