We have a native Clover POS app. We use the ACTION_SECURE_PAY, ACTION_MANUAL_PAY, ACTION_MANUAL_REFUND intents. In the event our app does not get the response back from the intent we would like to use the REST API to recall a payment.
https://docs.clover.com/build/oauth-2-0/ we need an API Token. To get an API Token, we need an Authorization Code. Is there a way to generate an Authorization Code without anyone having to physically log into a website? We are looking for a way to generate the Authorization Code programmatically using the merchant's credentials.
The reasoning behind this.. the merchant will know their credentials; however, it will be the employees that will be using the app. It doesn't make sense for our native Clover app to redirect to a website (is that even possible on a Clover Flex?) and prompt for credentials that employees will not have access to. We just want the process to be fluent without any redirects or prompting for credentials. Is this possible?
Any help would be greatly appreciated.