|
|
|
|
@ -46,7 +46,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class ToDo extends StatefulWidget {
|
|
|
|
|
late PatientShareResponse patientShareResponse;
|
|
|
|
|
PatientShareResponse patientShareResponse = PatientShareResponse();
|
|
|
|
|
List<AppoitmentAllHistoryResultList> appoList = [];
|
|
|
|
|
List<AncillaryOrdersListModel> ancillaryLists = [];
|
|
|
|
|
List<OBGyneProcedureListResponse> obGyneAppoList = [];
|
|
|
|
|
@ -1066,7 +1066,7 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
|
projectViewModel.analytics.todoList.to_do_list_pay_now(appo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openPayment(List<String> paymentMethod, AuthenticatedUser authenticatedUser, num amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) {
|
|
|
|
|
openPayment(paymentMethod, AuthenticatedUser authenticatedUser, num amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) {
|
|
|
|
|
widget.browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart, context: context);
|
|
|
|
|
|
|
|
|
|
widget.browser.openPaymentBrowser(
|
|
|
|
|
@ -1075,7 +1075,7 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
|
Utils.getAppointmentTransID(appo.projectID!, appo.clinicID!, appo.appointmentNo!),
|
|
|
|
|
appo.projectID.toString(),
|
|
|
|
|
authenticatedUser.emailAddress!,
|
|
|
|
|
paymentMethod[0],
|
|
|
|
|
paymentMethod[0]!,
|
|
|
|
|
authenticatedUser.patientType,
|
|
|
|
|
authenticatedUser.firstName!,
|
|
|
|
|
authenticatedUser.patientID,
|
|
|
|
|
@ -1315,7 +1315,7 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
|
|
|
|
|
|
if (value != null) {
|
|
|
|
|
final appType = appo.isLiveCareAppointment! ? 'livecare' : 'regular';
|
|
|
|
|
openPayment(value, projectViewModel.user!, double.parse(patientShareResponse.patientShareWithTax.toString()), patientShareResponse, appo);
|
|
|
|
|
openPayment(value, projectViewModel.user , double.parse(patientShareResponse.patientShareWithTax.toString()), patientShareResponse, appo);
|
|
|
|
|
projectViewModel.analytics.appointment.payment_method(appointment_type: appType, clinic: appo.clinicName, payment_method: value[0], payment_type: 'appointment');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|