From be8d9900a8c8e03811a29f8fd4e194e466dfad53 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 15 May 2017 15:37:18 +0200 Subject: [PATCH] urls --- Yavsc/Helpers/PayPalHelpers.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Yavsc/Helpers/PayPalHelpers.cs b/Yavsc/Helpers/PayPalHelpers.cs index 826f181a..97e6af4a 100644 --- a/Yavsc/Helpers/PayPalHelpers.cs +++ b/Yavsc/Helpers/PayPalHelpers.cs @@ -29,6 +29,8 @@ namespace Yavsc.Helpers invoice_number = query.Id.ToString(), custom = query.GetType().Name + "/"+ query.Id.ToString() }; + transaction.order_url = Startup.Audience + "/" +controllerName + "/Details/" + query.Id; + // transaction.item_list.shipping_address.city // country_code default_address id // line1 line2 preferred_address recipient_name state status type @@ -77,14 +79,10 @@ namespace Yavsc.Helpers transactions = new List { transaction }, redirect_urls = new RedirectUrls { - // FIXME s/HairCutCommand/{query.DedicatedCommandController}/{query.Id} - - return_url = Startup.Audience+ $"/{controllerName}/Detail/"+query.Id.ToString(), + return_url = Startup.Audience+ $"/{controllerName}/Details/"+query.Id.ToString(), cancel_url = Startup.Audience+ $"/{controllerName}/ClientCancel/"+query.Id.ToString() } }; - logger.LogWarning("Sending: "+JsonConvert.SerializeObject(payment)); - logger.LogWarning("Using: " + JsonConvert.SerializeObject(apiContext)); Payment result = null; try { result = Payment.Create(apiContext,payment);