sadadPayResendOtpV6 static method

Future<bool> sadadPayResendOtpV6({
  1. required String token,
  2. required String issandboxmode,
})

Implementation

static Future<bool> sadadPayResendOtpV6(
    {required String token,required String issandboxmode}) async {
  final url = Uri.parse(
    ApiEndPoint.sadadPayResendOTPV6,
  );
  Map<String, String> header = {'Content-Type': 'application/json'};
  //Map<String, dynamic> body = {"token" : token,"issandboxmode": issandboxmode};

  final body = json.encode({
    "token": token,
    "issandboxmode":issandboxmode,
  });
  var result = await http.post(
    url,
    headers: header,
    body: body,
  );

  if (result.statusCode == 200) {
    var response = jsonDecode(result.body);
    return response['result'];
  }
  return false;
}