no message

merge-requests/603/head
Zohaib Iqbal Kambrani 4 years ago
parent 1c6a62776c
commit 5c32e488d0

@ -67,10 +67,10 @@ class AdvancePayments{
} }
// R046 // R046
payment_success({@required String appointment_type, clinic, hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){ payment_success({@required String hospital, payment_method, payment_type, txn_number, txn_amount, txn_currency}){
logger('payment_success', parameters: { logger('payment_success', parameters: {
'appointment_type' : appointment_type, // 'appointment_type' : appointment_type,
'clinic_type_online' : clinic, // 'clinic_type_online' : clinic,
'payment_method' : payment_method, 'payment_method' : payment_method,
'payment_type' : payment_type, 'payment_type' : payment_type,
'hospital_name' : hospital, 'hospital_name' : hospital,

@ -181,17 +181,17 @@ class Appointment{
} }
// R049.1 // should be for appointment flow // R049.1 // should be for appointment flow
appointment_actions(AppoitmentAllHistoryResultList appointment, String action){ // appointment_actions(AppoitmentAllHistoryResultList appointment, String action){
logger('to_do_list_pay_now', parameters: { // logger('to_do_list_pay_now', parameters: {
'action_type' : action, // 'action_type' : action,
'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE, // 'flow_type' : GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE,
'appointment_type' : appointment.appointmentType, // 'appointment_type' : appointment.appointmentType,
'clinic_type_online' : appointment.clinicName, // 'clinic_type_online' : appointment.clinicName,
'hospital_name' : appointment.projectName, // 'hospital_name' : appointment.projectName,
'doctor_name' : (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName, // 'doctor_name' : (appointment.doctorName == null || appointment.doctorName == '') ? appointment.doctorNameObj : appointment.doctorName,
'payment_type' : 'appointment', // 'payment_type' : 'appointment',
}); // });
} // }
// R027 // R027
appointment_reminder(bool value){ appointment_reminder(bool value){

@ -406,7 +406,13 @@ class _ConfirmPaymentPageState extends State<ConfirmPaymentPage> {
service.checkPaymentStatus(transID, AppGlobal.context).then((res) { service.checkPaymentStatus(transID, AppGlobal.context).then((res) {
String paymentInfo = res['Response_Message']; String paymentInfo = res['Response_Message'];
if (paymentInfo == 'Success') { if (paymentInfo == 'Success') {
String txn_ref = res['Merchant_Reference'];
String amount = res['Amount'];
String payment_method = res['PaymentMethod'];
final currency = projectViewModel.user.outSA == 0 ? "sar" : 'aed';
createAdvancePayment(res, appo); createAdvancePayment(res, appo);
projectViewModel.analytics.advancePayments.payment_success(
payment_type: 'wallet', payment_method: payment_method, txn_amount: "$amount", txn_currency: currency, txn_number: txn_ref, hospital: widget.advanceModel.hospitalsModel.name);
} else { } else {
GifLoaderDialogUtils.hideDialog(AppGlobal.context); GifLoaderDialogUtils.hideDialog(AppGlobal.context);
AppToast.showErrorToast(message: res['Response_Message']); AppToast.showErrorToast(message: res['Response_Message']);

Loading…
Cancel
Save