-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Related Problem
Our application currently lacks a way to programmatically check the status of the card reader. We cannot verify if the reader is connected or check its battery level without user interaction. Additionally, SumUpAPI.prepareForCheckout() returns void, so we do not know if the background connection attempt was successful or if it failed.
Proposed Solution
We kindly request the following additions to the SumUpAPI to help us manage the reader state more effectively:
Connection Status: A public method (e.g., isConnected()) to check if a reader is currently connected.
Battery Level: A method to retrieve the current battery percentage of the connected reader.
Connection Listeners: A callback or listener to notify the app when a reader disconnects.
Preparation Feedback: Update SumUpAPI.prepareForCheckout() to return a boolean or status code indicating if the connection attempt was successful.