Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Karl 21 posts 133 karma points
    Feb 04, 2013 @ 17:30
    Karl
    0

    Can't complete an order

    Hi there,

    I've trying to excute the following:

    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.
    Karl

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Feb 04, 2013 @ 18:30
    Nickolaj Lundgreen
    0

    What payment service are you using, and how does the config look?

  • Karl 21 posts 133 karma points
    Feb 05, 2013 @ 10:03
    Karl
    0

    Hi Nickolaj,

    I'm using the default payment service. 

    The UCommerce section of my config file looks like this:

        <commerce>
            <runtimeConfiguration
                enableCache="true"
                cacheProvider="NHibernate.Caches.SysCache2.SysCacheProvider, NHibernate.Caches.SysCache2"
                connectionString="data source=fozzie;user id=Cubeworks;password=Cubew0rks*;initial catalog=umbraco-gp4.11.1;persist security info=True;multipleactiveresultsets=True;App=EntityFramework;"/>
            <catalogConfiguration defaultCultureCode="en-US" enforceCategoryNameUniquenessWithinCatalogs="true" />
            <securityConfiguration enable="true" />
            <amazonPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Amazon.config" />
            <authorizedotnetPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Authorizedotnet.config" />
            <braintreePaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Braintree.config" />
            <dibsPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Dibs.config" />
            <ePayPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\ePay.config" />
            <eWayPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\eWay.config" />
            <googleCheckoutPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\GoogleCheckout.config" />
            <idealIngPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Ideal-Ing.config" />
            <multiSafepayPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\MultiSafepay.config" />
            <ogonePaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Ogone.config" />
            <payerPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\Payer.config" />
            <payExPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\PayEx.config" />
            <payPalPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\PayPal.config" />
            <sagePayPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\SagePay.config" />
            <worldPayPaymentMethodService configSource="umbraco\ucommerce\configuration\payments\WorldPay.config" />
        </commerce>
    
  • Karl 21 posts 133 karma points
    Feb 05, 2013 @ 16:24
    Karl
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft