|
|
|
@ -138,7 +138,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
openPackagesPaymentBrowser({required int customer_id, required int order_id}) {
|
|
|
|
|
paymentType = _PAYMENT_TYPE.PACKAGES;
|
|
|
|
|
var full_url = '$PACKAGES_REQUEST_PAYMENT_URL?customer_id=$customer_id&order_id=$order_id';
|
|
|
|
|
this.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(full_url)), options: _InAppBrowserOptions);
|
|
|
|
|
this.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(full_url))), options: _InAppBrowserOptions);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openPaymentBrowser(num amount, String orderDesc, String transactionID, String projId, String emailId, String paymentMethod, dynamic patientType, String patientName, dynamic patientID,
|
|
|
|
@ -190,7 +190,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
String url = "https://hmgwebservices.com/HMGApplePayLive/applepay/pay?apq=" + res['result']; // Prod
|
|
|
|
|
// String url = "https://uat.hmgwebservices.com/HMGApplePayLive/applepay/pay?apq=" + res['result']; // UAT
|
|
|
|
|
// safariBrowser.open(url: Uri.parse(url));
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(url)), options: _InAppBrowserOptions);
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(url))), options: _InAppBrowserOptions);
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
|
if (context != null) GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
@ -233,7 +233,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
appoNo, clinicID, doctorID, "", installments)
|
|
|
|
|
.then((value) {
|
|
|
|
|
paymentType = _PAYMENT_TYPE.PATIENT;
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(value)), options: _InAppBrowserOptions);
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(value))), options: _InAppBrowserOptions);
|
|
|
|
|
});
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
print(err);
|
|
|
|
@ -245,7 +245,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
clinicID, doctorID)
|
|
|
|
|
.then((value) {
|
|
|
|
|
paymentType = _PAYMENT_TYPE.PATIENT;
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(value)), options: _InAppBrowserOptions);
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(value))), options: _InAppBrowserOptions);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -258,16 +258,16 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
// getPatientData();
|
|
|
|
|
generatePharmacyURL(order, amount, orderDesc, transactionID, emailId, paymentMethod, patientName, patientID, authenticatedUser).then((value) {
|
|
|
|
|
if (order.customValuesXml!.contains("ApplePay")) {
|
|
|
|
|
safariBrowser.open(url: Uri.parse(value));
|
|
|
|
|
safariBrowser.open(url: WebUri.uri(Uri.parse(value)));
|
|
|
|
|
} else {
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(value)), options: _InAppBrowserOptions);
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(value))), options: _InAppBrowserOptions);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openBrowser(String url) {
|
|
|
|
|
this.browser = browser;
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: Uri.parse(url)), options: _InAppBrowserOptions);
|
|
|
|
|
this.browser.openUrlRequest(urlRequest: URLRequest(url: WebUri.uri(Uri.parse(url))), options: _InAppBrowserOptions);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<String> generateURL(num amount, String orderDesc, String transactionID, String projId, String emailId, String paymentMethod, dynamic patientType, String patientName, dynamic patientID,
|
|
|
|
@ -489,7 +489,7 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void onCompletedInitialLoad() {
|
|
|
|
|
void onCompletedInitialLoad(bool? didLoadSuccessfully) {
|
|
|
|
|
print("ChromeSafari browser initial load completed");
|
|
|
|
|
onLoadStartCallback!("ApplePay");
|
|
|
|
|
}
|
|
|
|
|