checkout static method

dynamic checkout(
  1. CheckoutRequest request,
  2. dynamic callback(
    1. PaymentResponse response
    )
)

Sends a CheckoutRequest to Lio and waits until the payment is finished or canceled to execute callback

Implementation

static checkout(
    CheckoutRequest request, Function(PaymentResponse response) callback) {
  _paymentService!.checkout(request, callback);
}