|
|
|
|
@ -53,8 +53,8 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
// AuthenticatedUser authUser;
|
|
|
|
|
|
|
|
|
|
late ProjectViewModel projectViewModel;
|
|
|
|
|
String selectedPaymentMethod = "";
|
|
|
|
|
String selectedInstallments = "";
|
|
|
|
|
String? selectedPaymentMethod = "";
|
|
|
|
|
String? selectedInstallments = "";
|
|
|
|
|
String? tamaraPaymentStatus;
|
|
|
|
|
String? tamaraOrderID;
|
|
|
|
|
|
|
|
|
|
@ -600,7 +600,7 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openPayment(List<String> paymentMethod, AuthenticatedUser authenticatedUser, num amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) async {
|
|
|
|
|
openPayment(List<String?> paymentMethod, AuthenticatedUser authenticatedUser, num amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) async {
|
|
|
|
|
widget.browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart, context: context);
|
|
|
|
|
selectedPaymentMethod = paymentMethod[0];
|
|
|
|
|
selectedInstallments = paymentMethod[1];
|
|
|
|
|
@ -610,7 +610,7 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
Utils.getAppointmentTransID(appo.projectID!, appo.clinicID!, appo.appointmentNo!),
|
|
|
|
|
appo.projectID.toString(),
|
|
|
|
|
authenticatedUser.emailAddress!,
|
|
|
|
|
paymentMethod[0],
|
|
|
|
|
paymentMethod[0]!,
|
|
|
|
|
authenticatedUser.patientType,
|
|
|
|
|
authenticatedUser.firstName!,
|
|
|
|
|
authenticatedUser.patientID,
|
|
|
|
|
@ -682,10 +682,10 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
service.getTamaraPaymentStatus(orderID).then((res) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
if (res["status"].toString().toLowerCase() == "success") {
|
|
|
|
|
updateTamaraRequestStatus("success", "14", orderID, tamaraOrderID!, int.parse(selectedInstallments), appo);
|
|
|
|
|
updateTamaraRequestStatus("success", "14", orderID, tamaraOrderID!, int.parse(selectedInstallments!), appo);
|
|
|
|
|
} else {
|
|
|
|
|
updateTamaraRequestStatus(
|
|
|
|
|
"Failed", "00", Utils.getAppointmentTransID(appo.projectID!, appo.clinicID!, appo.appointmentNo!), tamaraOrderID != null ? tamaraOrderID! : "", int.parse(selectedInstallments), appo);
|
|
|
|
|
"Failed", "00", Utils.getAppointmentTransID(appo.projectID!, appo.clinicID!, appo.appointmentNo!), tamaraOrderID != null ? tamaraOrderID! : "", int.parse(selectedInstallments!), appo);
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
@ -998,7 +998,7 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
appointment.doctorTitle = "Dr. ";
|
|
|
|
|
appointment.doctorNameObj = widget.patientShareResponse.doctorNameObj;
|
|
|
|
|
appointment.doctorImageURL = widget.patientShareResponse.doctorImageURL;
|
|
|
|
|
appointment.doctorSpeciality = widget.patientShareResponse.doctorSpeciality as List<String>;
|
|
|
|
|
appointment.doctorSpeciality = (widget.patientShareResponse.doctorSpeciality != null) ? widget.patientShareResponse.doctorSpeciality as List<String> : [""];
|
|
|
|
|
appointment.projectName = widget.patientShareResponse.projectName;
|
|
|
|
|
appointment.projectID = widget.patientShareResponse.projectID;
|
|
|
|
|
appointment.appointmentDate = widget.patientShareResponse.appointmentDate;
|
|
|
|
|
|