paymentOption method

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

Implementation

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

  try {

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

    error.call(e);
  }
}