flutter_stripe icon indicating copy to clipboard operation
flutter_stripe copied to clipboard

Payment sheet visibility listener

Open AntoniPochopien opened this issue 9 months ago • 1 comments

I would like to request a feature that enables the detection of when the payment sheet is visible on the screen. For instance, I intend to trigger background animations while the payment sheet is being displayed.

The proposed solution involves implementing a listener that can provide data regarding the status of the sheet. Alternatively, without a listener, we could assume the sheet is visible after initializing the payment sheet. However, accurately determining when the sheet disappears after a successful payment remains challenging.

It's worth noting that adding a listener might pose a risk, as it could potentially lead inexperienced developers to rely on it to confirm payments instead of utilizing webhooks.

AntoniPochopien avatar May 15 '24 15:05 AntoniPochopien