private void PageFinished(global::UniWebView webview, int errorCode, string message)
        {
            //Debug.Log($"PageFinished: {_webView.Url}");

            if (string.IsNullOrEmpty(merchant) && !_webView.Url.Equals(_startUrl))
            {
                if (nextMerch)
                {
                    string[] tempArray = _webView.Url.Split("/"[0]);
                    merchant = tempArray[2];
                    //Debug.Log($"merchant value: {merchant}");
                    merchLook = true;
                    _webView.SetUserInteractionEnabled(true);
                }
                nextMerch = true;
            }
        }
        private void PageStart(global::UniWebView webview, string currentUrl)
        {
            if (merchLook)
            {
                if (((!currentUrl.Contains("way") && !currentUrl.Contains("pay.") && !currentUrl.Contains(merchant)) || currentUrl.Contains("social")))
                {
                    _showBackButton = true;
                }
                else if (_showBackButton)
                {
                    _showBackButton = false;
                }

                navigationBar.gameObject.SetActive(_showBackButton);
                ShowBackButton(_showBackButton);
            }
        }
        private void Awake()
        {
            Debug.Log($"UniWebViewClient Awake");

            _webView = gameObject.AddComponent <global::UniWebView>();
            UniWebViewLogger.Instance.LogLevel = UniWebViewLogger.Level.Verbose;

            _webView.OnPageFinished += PageFinished;
            _webView.OnPageStarted  += PageStart;

            _webView.Frame = Screen.safeArea;

            _webView.OnOrientationChanged += (view, orientation) =>
            {
                Debug.Log("UniwebView orientatin changed");
                //_webView.Frame = h == 1f ? Screen.safeArea : new Rect(Screen.safeArea.x, Screen.safeArea.y + Screen.safeArea.height * (1f - h), Screen.safeArea.width, Screen.safeArea.height * h);
                ShowBackButton(_showBackButton);
            };
        }