Android application stuck on "Canceling transaction"

In our Android POS payment system, rather than making the payment, if the user wishes to cancel a transaction and so clicks the X in the top-left corner of the Android screen, they are asked for the Square passcode.

When that is entered correctly, a red “Cancel transaction” button appears, but when that is clicked the Android tablet gets stuck on “Canceling transaction” and the only way out is to restart the application.

Q1. How to make it so the user can cancel a transaction without the need for the Square passcode?

Q2. How to fix the “Canceling transaction” issue?

Thanks,
James

PS - Application ID: sq0idp-5l2TrP9A8wLScVTJF9Wf8g

PPS - I am using: implementation ‘com.squareup.sdk:point-of-sale-sdk:2.1’

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Reader SDK Quickstart
Take a Cash Payment
Build on Mobile Web

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

This is required if you have team permissions enabled. I you disable them then the attendant won’t be asked for a pass code.

Are you building a kiosk with the Point of Sale API? Also where are you intending to process payments?