#Samiullah Jamil
1 messages · Page 1 of 1 (latest)
hi! what code exactly are you using?
It's Terminal.getInstance().clearReaderDisplay(callback)
On simulated reader, it shows the reader does not support clearing the display. And on the physical device, it doesn't just work.
what does "doesn't work" mean? What screen is the reader showing when you call that function and what screen do you expect it to change to?
that function is only intended to clear the "cart display screen" if that is open, as far as I know, so maybe that's the confusion
When I initiate the payment on the device. The device display the amount to capture and wait for card swipe. But from my Android app I want to cancel the payment intent. I am able to cancel the payment intent but the display keeps on showing that. Want to remove that display.
Is there a function to clear the display in this case when payment is cancelled and no longer needed?
calling .cancel() on the Cancelable returned from collectPaymentMethod should do that I believe, if that's the stage that the process is at
Ok, thanks. Let me try that.