|
|
|
@ -46,6 +46,7 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
AuthenticatedUser authUser;
|
|
|
|
AuthenticatedUser authUser;
|
|
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
String selectedPaymentMethod = "";
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
initState() {
|
|
|
|
initState() {
|
|
|
|
@ -546,7 +547,7 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
|
|
|
|
|
|
|
|
openPayment(List<String> paymentMethod, AuthenticatedUser authenticatedUser, double amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) async {
|
|
|
|
openPayment(List<String> paymentMethod, AuthenticatedUser authenticatedUser, double amount, PatientShareResponse patientShareResponse, AppoitmentAllHistoryResultList appo) async {
|
|
|
|
widget.browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart, context: context);
|
|
|
|
widget.browser = new MyInAppBrowser(onExitCallback: onBrowserExit, appo: appo, onLoadStartCallback: onBrowserLoadStart, context: context);
|
|
|
|
|
|
|
|
selectedPaymentMethod = paymentMethod[0];
|
|
|
|
widget.browser.openPaymentBrowser(
|
|
|
|
widget.browser.openPaymentBrowser(
|
|
|
|
amount,
|
|
|
|
amount,
|
|
|
|
"Appointment check in",
|
|
|
|
"Appointment check in",
|
|
|
|
@ -615,10 +616,10 @@ class _BookSuccessState extends State<BookSuccess> {
|
|
|
|
AppToast.showErrorToast(message: res['Response_Message']);
|
|
|
|
AppToast.showErrorToast(message: res['Response_Message']);
|
|
|
|
projectViewModel.analytics.appointment.payment_fail(
|
|
|
|
projectViewModel.analytics.appointment.payment_fail(
|
|
|
|
appointment_type: 'regular',
|
|
|
|
appointment_type: 'regular',
|
|
|
|
payment_method: payment_method,
|
|
|
|
payment_method: selectedPaymentMethod,
|
|
|
|
clinic: appo.clinicName,
|
|
|
|
clinic: appo.clinicName,
|
|
|
|
hospital: appo.projectName,
|
|
|
|
hospital: appo.projectName,
|
|
|
|
txn_amount: "$amount",
|
|
|
|
txn_amount: widget.patientShareResponse.patientShareWithTax.toString(),
|
|
|
|
txn_currency: currency,
|
|
|
|
txn_currency: currency,
|
|
|
|
error_type: res['Response_Message']);
|
|
|
|
error_type: res['Response_Message']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|