示例#1
0
        public object GetConfiguration()
        {
            var settings = Mvx.Resolve <IAppSettings>().Data;
            var localize = Mvx.Resolve <ILocalization>();

            var baseUri = settings.ServiceUrl.Replace("api/", string.Empty);

            var configuration = new PayPalConfiguration();

            configuration.AcceptCreditCards(false);
            configuration.LanguageOrLocale(localize.CurrentLanguage);
            configuration.MerchantName(settings.TaxiHail.ApplicationName);
            configuration.MerchantPrivacyPolicyUri(Android.Net.Uri.Parse(string.Format("{0}/company/privacy", baseUri)));
            configuration.MerchantUserAgreementUri(Android.Net.Uri.Parse(string.Format("{0}/company/termsandconditions", baseUri)));
            configuration.Environment(_environment);
            configuration.ClientId(_clientId);

            return(configuration);
        }