googlePayCompletion static method

Future googlePayCompletion({
  1. required String encodedString,
  2. required String googlePayURL,
})

Implementation

static Future<dynamic?> googlePayCompletion({required String encodedString, required String googlePayURL}) async {
  final url = Uri.parse(googlePayURL);
  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);
    return response;
  }
  return null;
}