PayDentelFees method
Future
PayDentelFees(
{ - dynamic insertId,
})
Implementation
Future PayDentelFees({insertId}) async {
var decodedResponse;
final ApiBody = {
"insert_id": insertId.toString(),
};
try {
final response = await http.post(
Uri.parse('${SDK_BASE_URL}ental_api/pay_at_home'),
body: ApiBody,
headers: {"Authorization": SignUpController.currentUserToken});
decodedResponse = json.decode(response.body);
if (response.statusCode == 200) {
Get.snackbar("Successfully",
"Appointment requested, Our team will contact you shortly");
Get.offAll(HomePage());
}
} catch (e) {
errorListner(
apiname: 'ental_api/pay_at_home',
responsed: "${decodedResponse}",
request: '${ApiBody}',
app_error: '${e}');
}
}