completePresentCredential method

Future<void> completePresentCredential(
  1. String cookie,
  2. String isAccepted,
  3. String url
)

Implementation

Future<void> completePresentCredential(String cookie,String isAccepted, String url)async{
  var header = {
    "Cookie": cookie,
    "Content-Type": "application/json",
    "Accept": "application/json",
  };

  var body = jsonEncode({
    "status": isAccepted ,
    "url": url,
  });

  await http.post(
    Uri.parse("${ApiConfig.baseUrl}holder/update-verified-transaction"),
    headers: header,
    body: body,
  );
}