cancelPayment static method

dynamic cancelPayment(
  1. CancelRequest request,
  2. dynamic callback(
    1. PaymentResponse response
    )
)

Sends a CancelRequest to Lio and waits until the cancelment is finished or canceled to execute callback

Implementation

static cancelPayment(
    CancelRequest request, Function(PaymentResponse response) callback) {
  _cancelService!.cancelPayment(request, callback);
}