PurpleSoftSrl / sumup_flutter_plugin

A Flutter wrapper to use the SumUp SDK. With this plugin, your app can easily connect to a SumUp terminal, login and accept card payments on Android and iOS.
https://www.purplesoft.io
MIT License
17 stars 17 forks source link

How to restart SumUp plugin on errors #56

Open mrgithub opened 8 months ago

mrgithub commented 8 months ago

SumUp plugin fails to process transactions every so often. This leads to the donation station being unusable unless the app is restarted. Is there a way to manually dispose of the plugin and restart and reinitialise it?

I want to reboot the plugin when it becomes unresponsive without having to restart the my whole app.

I do a check here to see if transaction completed with this.: "checkoutResponse.success ?? false"

Seems to be the odd sumup server issue doing something in the plugin. Thereafter it no longer responsive. Have a workaround to restart entire app using another plugin.

Any way to restart just the SumUp plugin?

sstasi95 commented 6 months ago

Hi, it's not possible as far as I know. You can try to check if your app correctly handles the server errors, which can happen sometimes.