We have a custom web app where we combine several products and services for a customer's invoice. Currently, we go to the Clover app online, choose the customer from the drop-down (with their saved payment info), enter the invoice total, and process the payment.
Instead, we want to process the payment from within our web app by clicking a button like "Process Payment" and getting a confirmation without having to do the manual process on the Clover website.
What is the best way to do this? Do we associate some Clover customer ID with the customer in our web app, send the order total via the API, and get a successful/failed response? Is there sample code for this type of API call?
Any help is appreciated. Thank you.