streamTransactionStatus method

Stream<StatusResponse> streamTransactionStatus(
  1. String? pollUrl, {
  2. int streamInterval = 20,
})

Stream Transaction Status,

streamInterval shows the number of seconds to wait for next polling in the stream

returns a Stream of StatusResponse

Implementation

Stream<StatusResponse> streamTransactionStatus(
  String? pollUrl, {
  int streamInterval = 20,
}) {
  _statusStreamManager = PaymentStatusStreamManager(this, pollUrl!,
      streamInterval: streamInterval);

  return _statusStreamManager!.statusTransactionStream;
}