receivePayment method

Future<ReceivePaymentResponse> receivePayment({
  1. required ReceivePaymentRequest req,
  2. dynamic hint,
})
override

See BreezServices::receive_payment

Implementation

Future<ReceivePaymentResponse> receivePayment({required ReceivePaymentRequest req, dynamic hint}) {
  var arg0 = _platform.api2wire_box_autoadd_receive_payment_request(req);
  return _platform.executeNormal(FlutterRustBridgeTask(
    callFfi: (port_) => _platform.inner.wire_receive_payment(port_, arg0),
    parseSuccessData: _wire2api_receive_payment_response,
    parseErrorData: _wire2api_FrbAnyhowException,
    constMeta: kReceivePaymentConstMeta,
    argValues: [req],
    hint: hint,
  ));
}