I'm a little lost with OAuth.
I've setup a basic webview that does nothing more than call the URL of a test page on my Web app. So I have a line in my Android App as follows
webview.loadUrl("http://www.example.com/users/clover_login");
The OAuth documentation says this ..
"The OAuth flow begins when a merchant clicks your app’s icon on their Clover merchant dashboard, and results in the merchant landing on your site URL along with a code that your app can use to retrieve the secure token used to access that merchant’s data through the REST API."
Does that mean I should actually have something like this in my Android MainActivity.java?
webview.loadUrl("https://www.example.com/users/clover_login/oauth_callback?code=12345678-9abc-d123-4567-516171819201&merchant_id=EHFABCCE7D1SA&client_id=HENXXTCZ3QP26");
and I would replace the code, merchanid and clientid data with those of my own?
Presumably then in my PHP web app, I would take those parameters / arguments and issue my own call to the Clover OAuth login
Just need to know Im on the right path with this. Because Im finding it difficult to get anything working.. thanks Robin