disconnect method
void
disconnect()
Implementation
void disconnect() {
WidgetsBinding.instance.removeObserver(this);
_stopPolling();
// _paymentSucceeded intentionally NOT reset here.
// It is reset in attachLifecycleObserver() when a new payment session
// starts. Resetting here caused re-navigation on any background/resume
// event that occurred after success but before the next payment.
_transactionId = null;
}