var paymentMethod = PaymentMethod.Find(pm => pm.PaymentMethodServiceName == paymentMethodName).Single();
UCommerce.Xslt.Library.CreatePayment(paymentMethod.Id);
But it keeps failing with the following error:
UCommerce.Pipelines.PipelineException was unhandled by user code
HResult=-2146233088
Message=Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
Source=UCommerce
StackTrace:
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
at UCommerce.Transactions.Payments.AbstractPaymentMethodService.ExecutePostProcessingPipeline(Payment payment)
at UCommerce.Transactions.Payments.DefaultPaymentMethodService.RequestPayment(PaymentRequest request)
at UCommerce.Transactions.TransactionLibraryInternal.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment_callback(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at Castle.Proxies.Invocations.TransactionLibraryInternal_CreatePayment.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at UCommerce.Xslt.LibraryImpl.CreatePayment(Int32 paymentMethodId)
at UCommerce.Xslt.Library.CreatePayment(Int32 paymentMethodId)
at Cubeworks.Commerce.Facade.OrderFacade.CompleteUCommerceOrder(String transactionNumber, String paymentMethodName) in e:\Development\Cubeworks.GP\app\Cubeworks.Commerce.Facade\OrderFacade.cs:line 111
at Cubeworks.Commerce.Facade.OrderFacade.CompleteOrder(String transactionNumber, String paymentMethodName) in e:\Development\Cubeworks.GP\app\Cubeworks.Commerce.Facade\OrderFacade.cs:line 98
at ASP._Page_macroScripts_CompleteOrder_cshtml.Execute() in e:\Development\cubeworks.gp\app\CF-Catering.Web\macroScripts\CompleteOrder.cshtml:line 33
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.WebPages.WebPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
InnerException: System.Net.WebException
HResult=-2146233079
Message=The remote server returned an error: (404) Not Found.
Source=System
StackTrace:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
InnerException:
I've got my payment method set to the Checkout pipeline, but even if I comment out everything in that, I still get the same error. I've only had issues since upgrading to the latest version of UCommerce. All help gratefully received.
Can't complete an order
Hi there,
I've trying to excute the following:
But it keeps failing with the following error:
UCommerce.Pipelines.PipelineException was unhandled by user code
HResult=-2146233088
Message=Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details.
Source=UCommerce
StackTrace:
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
at UCommerce.Transactions.Payments.AbstractPaymentMethodService.ExecutePostProcessingPipeline(Payment payment)
at UCommerce.Transactions.Payments.DefaultPaymentMethodService.RequestPayment(PaymentRequest request)
at UCommerce.Transactions.TransactionLibraryInternal.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment_callback(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at Castle.Proxies.Invocations.TransactionLibraryInternal_CreatePayment.InvokeMethodOnTarget()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at UCommerce.Infrastructure.Interceptor.ExceptionLoggingInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at UCommerce.Xslt.LibraryImpl.CreatePayment(Int32 paymentMethodId)
at UCommerce.Xslt.Library.CreatePayment(Int32 paymentMethodId)
at Cubeworks.Commerce.Facade.OrderFacade.CompleteUCommerceOrder(String transactionNumber, String paymentMethodName) in e:\Development\Cubeworks.GP\app\Cubeworks.Commerce.Facade\OrderFacade.cs:line 111
at Cubeworks.Commerce.Facade.OrderFacade.CompleteOrder(String transactionNumber, String paymentMethodName) in e:\Development\Cubeworks.GP\app\Cubeworks.Commerce.Facade\OrderFacade.cs:line 98
at ASP._Page_macroScripts_CompleteOrder_cshtml.Execute() in e:\Development\cubeworks.gp\app\CF-Catering.Web\macroScripts\CompleteOrder.cshtml:line 33
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.WebPages.WebPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
InnerException: System.Net.WebException
HResult=-2146233079
Message=The remote server returned an error: (404) Not Found.
Source=System
StackTrace:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
InnerException:
What payment service are you using, and how does the config look?
Hi Nickolaj,
I'm using the default payment service.
The UCommerce section of my config file looks like this:
Hi there,
I just got to the bottom of my issue. I hadn't specified an email template for the confirmation email.
Thanks for your time. Kind regards,
Karl
is working on a reply...