BreX900 / mek-packages

11 stars 14 forks source link

Cancel payment #60

Open MaksimDeve opened 6 months ago

MaksimDeve commented 6 months ago

cancelPaymentIntent does not cancel the payment on the terminal the device still shows a waiting card

BreX900 commented 4 months ago

@MaksimDeve I do not have a physical device on which to test. Can you also replicate it using connectMobileReader?

zeeshahmad commented 4 months ago

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 commented 3 months ago

@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

qureshi0197 commented 3 weeks ago

@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.