onResult static method

StreamSubscription<PaymentResult> onResult(
  1. void callback(
    1. PaymentResult result
    )
)

Listens for every payment result from pay or presentPaymentSheet.

Implementation

static StreamSubscription<PaymentResult> onResult(
  void Function(PaymentResult result) callback,
) {
  return _requireClient.resultStream.listen(callback);
}