googlePayCompletion static method
Future
googlePayCompletion(
{ - required String encodedString,
- 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);
print(response);
return response;
}
return null;
}