|
|
|
|
@ -147,7 +147,7 @@ class _ImmediateLiveCarePaymentPageState extends State<ImmediateLiveCarePaymentP
|
|
|
|
|
appointmentNo: "0",
|
|
|
|
|
doctorID: "0",
|
|
|
|
|
transactionID: transID,
|
|
|
|
|
amount: myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString(),
|
|
|
|
|
amount: immediateLiveCareViewModel.liveCareImmediateAppointmentFeesList.total.toString(),
|
|
|
|
|
fileNumber: appState.getAuthenticatedUser()!.patientId.toString(),
|
|
|
|
|
orderDescription: "LiveCare Payment",
|
|
|
|
|
serviceID: ServiceTypeEnum.liveCareAppointment.getIdFromServiceEnum().toString(),
|
|
|
|
|
@ -314,7 +314,7 @@ class _ImmediateLiveCarePaymentPageState extends State<ImmediateLiveCarePaymentP
|
|
|
|
|
appointmentNo: "0",
|
|
|
|
|
doctorID: "0",
|
|
|
|
|
transactionID: transID,
|
|
|
|
|
amount: myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString(),
|
|
|
|
|
amount: immediateLiveCareViewModel.liveCareImmediateAppointmentFeesList.total.toString(),
|
|
|
|
|
fileNumber: appState.getAuthenticatedUser()!.patientId.toString(),
|
|
|
|
|
orderDescription: "LiveCare Payment",
|
|
|
|
|
serviceID: ServiceTypeEnum.liveCareAppointment.getIdFromServiceEnum().toString(),
|
|
|
|
|
@ -467,8 +467,7 @@ class _ImmediateLiveCarePaymentPageState extends State<ImmediateLiveCarePaymentP
|
|
|
|
|
);
|
|
|
|
|
if (appState.isPaytabsEnabled) {
|
|
|
|
|
paytabsViewModel.setAlternatePaymentConfiguration(
|
|
|
|
|
"LiveCare Payment",
|
|
|
|
|
num.parse(myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString()),
|
|
|
|
|
"LiveCare Payment", num.parse(immediateLiveCareViewModel.liveCareImmediateAppointmentFeesList.total!),
|
|
|
|
|
ServiceTypeEnum.liveCareAppointment.getIdFromServiceEnum(),
|
|
|
|
|
(ApiConsts.appEnvironmentType == AppEnvironmentTypeEnum.uat ? 15 : 12));
|
|
|
|
|
|
|
|
|
|
@ -859,12 +858,12 @@ class _ImmediateLiveCarePaymentPageState extends State<ImmediateLiveCarePaymentP
|
|
|
|
|
|
|
|
|
|
applePayInsertRequest.isMobSDK = true;
|
|
|
|
|
applePayInsertRequest.merchantReference = transID;
|
|
|
|
|
applePayInsertRequest.merchantIdentifier = payfortViewModel.payfortProjectDetailsRespModel!.merchantIdentifier;
|
|
|
|
|
applePayInsertRequest.merchantIdentifier = appState.isPaytabsEnabled ? paytabsViewModel.paytabsProjectDetailsRespModel!.merchantIdentifier : payfortViewModel.payfortProjectDetailsRespModel!.merchantIdentifier;
|
|
|
|
|
applePayInsertRequest.commandType = "PURCHASE";
|
|
|
|
|
applePayInsertRequest.signature = payfortViewModel.payfortProjectDetailsRespModel!.signature;
|
|
|
|
|
applePayInsertRequest.accessCode = payfortViewModel.payfortProjectDetailsRespModel!.accessCode;
|
|
|
|
|
applePayInsertRequest.shaRequestPhrase = payfortViewModel.payfortProjectDetailsRespModel!.shaRequest;
|
|
|
|
|
applePayInsertRequest.shaResponsePhrase = payfortViewModel.payfortProjectDetailsRespModel!.shaResponse;
|
|
|
|
|
applePayInsertRequest.signature = appState.isPaytabsEnabled ? paytabsViewModel.paytabsProjectDetailsRespModel!.signature : payfortViewModel.payfortProjectDetailsRespModel!.signature;
|
|
|
|
|
applePayInsertRequest.accessCode = appState.isPaytabsEnabled ? paytabsViewModel.paytabsProjectDetailsRespModel!.accessCode : payfortViewModel.payfortProjectDetailsRespModel!.accessCode;
|
|
|
|
|
applePayInsertRequest.shaRequestPhrase = appState.isPaytabsEnabled ? paytabsViewModel.paytabsProjectDetailsRespModel!.shaRequest : payfortViewModel.payfortProjectDetailsRespModel!.shaRequest;
|
|
|
|
|
applePayInsertRequest.shaResponsePhrase = appState.isPaytabsEnabled ? paytabsViewModel.paytabsProjectDetailsRespModel!.shaResponse : payfortViewModel.payfortProjectDetailsRespModel!.shaResponse;
|
|
|
|
|
applePayInsertRequest.returnURL = "";
|
|
|
|
|
|
|
|
|
|
//TODO: Need to pass dynamic params to the Apple Pay instead of static values
|
|
|
|
|
|