debitCardWebViewRequest static method

Future debitCardWebViewRequest({
  1. required String encodedString,
})

Implementation

static Future<dynamic?> debitCardWebViewRequest({required String encodedString}) async {
  final url = Uri.parse(ApiEndPoint.debitCardURL);
  String body = encodedString;
  //List<int> body = utf8.encode("encryptData=$encodedString");
  var result = await http.post(url, body: body);
  if (result.statusCode == 200) {
    var response = jsonDecode(result.body);
    print(response);
    return response;
  }
  return "";
}