How to integrate Braintree with xamarin android

I tried to integrate braintree payment gateway with my xamarin android project, But got many problems on that.

Can anyone please help me to integrate the Braintree payment gateway in anroid.

Thanks

Answers

  • gabzasgabzas USMember

    Have you found a solution for this?
    I am also interested in integrating braintree on Android.

  • Ranjeet_SinghRanjeet_Singh INMember ✭✭
    edited January 2016

    Hello gables i first created a web page for braintree payment integration and then use that webpage in my android application using WebView as:

         webView = new WebView(this);
          SetContentView(webView);        
        webView.SetWebViewClient(new WebViewClient());        
                        webView.Visibility = ViewStates.Visible;
                        //webView.Settings.BuiltInZoomControls = true;
                        webView.Settings.CacheMode = CacheModes.NoCache;
                        webView.Settings.DomStorageEnabled = true;
                        webView.ClearHistory();
                        webView.ClearCache(true);
                        webView.Settings.JavaScriptEnabled = true;
                        //webView.Settings.SetSupportZoom(true);
                        webView.Settings.UseWideViewPort = false;
                        webView.Settings.LoadWithOverviewMode = false;
    
                        System.Text.StringBuilder url_builder = new System.Text.StringBuilder();
                        url_builder.Append("URL of the web page having Braintree Integration");
                        url_builder.Append("payment?price=");
                        url_builder.Append(this.amount);
                        url_builder.Append("&trip_id=");
                        url_builder.Append(this.trip_id);
                        url_builder.Append("&trip_type=");
                        url_builder.Append(this.trip_type);        
                        webView.LoadUrl(url_builder.ToString()); 
    
Sign In or Register to comment.