proceedTransaction method

Future<void> proceedTransaction(
  1. Map<String, dynamic> request,
  2. dynamic response(
    1. Map<String, dynamic>
    ),
  3. dynamic error(
    1. dynamic
    )
)

Implementation

Future<void> proceedTransaction(Map<String, dynamic> request, Function(Map<String, dynamic>) response, Function(dynamic) error) async {

  try {

    response.call(json.decode(await _api.proceedTransaction(json.encode(request))));
  } catch (e) {

    error.call(e);
  }
}