Skip to content

[Feature] Get more info about the CardReader #258

@stupix

Description

@stupix

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions