creditCardWebViewRequest static method

Future creditCardWebViewRequest({
  1. required String encodedString,
  2. required String creditCardUrl,
})

Implementation

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