public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            BTAppSwitch.SetReturnURLScheme(PayPalUrlScheme);

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            var pleasantGrey = UIColor.FromWhiteAlpha(42 / 255.0f, 1.0f);

            UIToolbar.Appearance.BarTintColor = pleasantGrey;

            //BTTokenizationService.SharedService()
            //                     .RegisterType("PayPalx",(client, data, subblock) => {
            //    var driver = new BraintreePayPal.BTPayPalDriver(client);
            //});

            BraintreePayPal.BraintreePayPalLinker.Init();

            var paypal = BTTokenizationService.SharedService().IsTypeAvailable("PayPal");

            System.Diagnostics.Debug.WriteLine($"Paypal: {paypal}");

            BTAppSwitch.SetReturnURLScheme(BraintreeDemoAppDelegatePaymentsURLScheme);

            return(true);
        }