cancelPayment method
Implementation
cancelPayment(CancelRequest request,
Function(PaymentResponse response) callback) async {
_stream().listen((PaymentResponse response) {
if (response.status == "ENTERED") {
print(response.id);
callback.call(response);
} else {
print(response.status);
}
});
var uri = _generateCancelUri(request);
await _messagesChannel!.invokeMethod('reversal', {"uri": uri});
}