|
|
|
|
@ -27,7 +27,12 @@ var _InAppBrowserOptions = InAppBrowserClassOptions(
|
|
|
|
|
ios: IOSInAppWebViewOptions(applePayAPIEnabled: true, isFraudulentWebsiteWarningEnabled: false)),
|
|
|
|
|
crossPlatform: InAppBrowserOptions(hideUrlBar: true, toolbarTopBackgroundColor: Colors.black),
|
|
|
|
|
android: AndroidInAppBrowserOptions(),
|
|
|
|
|
ios: IOSInAppBrowserOptions(hideToolbarBottom: true, toolbarBottomBackgroundColor: Colors.white, closeButtonColor: Colors.white, presentationStyle: IOSUIModalPresentationStyle.OVER_FULL_SCREEN));
|
|
|
|
|
ios: IOSInAppBrowserOptions(
|
|
|
|
|
hideToolbarBottom: true,
|
|
|
|
|
toolbarBottomBackgroundColor: Colors.white,
|
|
|
|
|
closeButtonColor: Colors.white,
|
|
|
|
|
closeButtonCaption: "Close",
|
|
|
|
|
presentationStyle: IOSUIModalPresentationStyle.OVER_FULL_SCREEN));
|
|
|
|
|
|
|
|
|
|
class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
_PAYMENT_TYPE paymentType;
|
|
|
|
|
@ -176,8 +181,8 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
|
|
|
|
|
service.applePayInsertRequest(applePayInsertRequest, context).then((res) {
|
|
|
|
|
if (context != null) GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
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
|
|
|
|
|
// 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);
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
|