From 95a417fa6ea342c70b9c5b16ca077ccdb30ee5bf Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 2 Jun 2017 10:13:39 +0200 Subject: [PATCH] ckeaning --- Yavsc/Helpers/PayPalHelpers.cs | 35 ---------------------------------- 1 file changed, 35 deletions(-) diff --git a/Yavsc/Helpers/PayPalHelpers.cs b/Yavsc/Helpers/PayPalHelpers.cs index 4807f1a0..8a7716a9 100644 --- a/Yavsc/Helpers/PayPalHelpers.cs +++ b/Yavsc/Helpers/PayPalHelpers.cs @@ -107,41 +107,6 @@ namespace Yavsc.Helpers logger.LogInformation($"Creating express checkout for {Startup.PayPalSettings.MerchantAccountUserName} : "+JsonConvert.SerializeObject(coreq)); var response = PayPalService.SetExpressCheckout( coreq, Startup.PayPalSettings.MerchantAccountUserName ); - // transaction.item_list.shipping_address.city - // country_code default_address id - // line1 line2 preferred_address recipient_name state status type - /* transaction.item_list = new ItemList(); - if (query.Client.PostalAddress!=null) { - var address = query.Client.PostalAddress?.Address; - if (address!=null) { - var parts = new Stack ( address.Split(',') ); - var country = parts.Pop().Trim(); - var city = parts.Pop().Trim().Split(' '); - var line1 = parts.First().Trim(); - var line2 = string.Join(" - ",parts.Skip(1)); - transaction.item_list.shipping_address = new ShippingAddress { - line1 = line1, - line2 = line2, - city = city[1], - postal_code = city[0], - country_code = country == "France" ? "fr" : country - }; - } - } - transaction.item_list.shipping_phone_number = query.Client.PhoneNumber; - var items = query.GetBillItems(); - transaction.item_list.items = items.Select(i => new Item { - name = i.Name, - description = i.Description, - quantity = i.Count.ToString(), - price = i.UnitaryCost.ToString("F2"), - currency = "EUR", - sku = "sku" - // postback_data= - // supplementary_data= - }).ToList(); - */ - return response; }