Open MaksimDeve opened 6 months ago
@MaksimDeve I do not have a physical device on which to test. Can you also replicate it using connectMobileReader
?
Also found similar behaviour. At the requiresConfirmation paymentIntentStatus, cancelPaymentIntent does not really cancel, and it shows "processing".
Then when another payment intent is subsequently created and progressed, the terminal device shows invalid card etc a second before waiting for card/input again.
Version 3.2.1, testing on terminal using wifi together with app running android
@MaksimDeve I do not have a physical device on which to test. Can you also replicate it using
connectMobileReader
?
on ios and android (connectMobileReader) canceled all ok I don't know how to cancel payment on terminal device because WIFI terminal don't have a button for this ))) i call cancelPaymentIntent and nothing happened, terminal still waiting card
@MaksimDeve
I have solved the issue for now until the issue is resolved by the 'mek_stripe_terminal' team by forking the repo and using it as dependency in the yaml and I added a function in terminal.dart file of the package.
static void resetInstance() { _instance = null; }
I am using this function with combination of another function in the following form
mek.Terminal.resetInstance();
await mek.Terminal.getInstance(fetchToken: () async { return connectionToken; });
This allows me to disconnect the reader. It has resolved my issue. I hope it resolves your issue as well.
I am only using android therefore i have not tested this for iOS.
cancelPaymentIntent does not cancel the payment on the terminal the device still shows a waiting card