Copied to clipboard

Flag this post as spam?

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


  • Laurence Gillian 595 posts 1211 karma points
    May 28, 2016 @ 13:49
    Laurence Gillian
    0

    500 Error when Checking out using PayPal

    TeaCommerce: 3.1.0 Umbraco: 6.2.5

    When the payment provider is set to PayPal, when rendering the PaymentForm a 500 error is thrown.

    Any ideas much appreciated!

    System.MissingMethodException was unhandled by user code
    Method not found: 'TeaCommerce.Api.Models.Price TeaCommerce.Api.Models.OrderLine.get_UnitPrice()'.
    
    Source=TeaCommerce.PaymentProviders
    StackTrace:
       at TeaCommerce.PaymentProviders.Classic.PayPal.GenerateHtmlForm(Order order, String teaCommerceContinueUrl, String teaCommerceCancelUrl, String teaCommerceCallBackUrl, String teaCommerceCommunicationUrl, IDictionary`2 settings)
       at TeaCommerce.Api.Web.PaymentProviders.PaymentMethodExtensions.GeneratePaymentForm(PaymentMethod paymentMethod, Order order, String submitInput)
       at TeaCommerce.Api.Web.TeaCommerceHelper.GeneratePaymentForm(Int64 storeId, String submitInput)
       at TeaCommerce.Umbraco.Web.TC.GeneratePaymentForm(Int64 storeId, String submitInput)
       at ASP._Page_Views_CheckoutConfirmation_cshtml.Execute() in c:\Git\Gather and See\Src\gs.shop.Site\Views\CheckoutConfirmation.cshtml:line 185
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
       at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
       at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
       at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
    
  • Anders Burla Johansen 2560 posts 8256 karma points
    May 30, 2016 @ 08:54
    Anders Burla Johansen
    1

    Hi Laurence

    At the moment the package has a wrong name on Our - its named 3.0.8 for Umbraco 6 but should have been 3.1.0. Is that the one you use?

    It looks like the provider is build for another dll file where the UnitPrice isnt available anymore. Have you overwritten all dll files that was in the package?

    Kind regards

    Anders

  • Laurence Gillian 595 posts 1211 karma points
    May 31, 2016 @ 13:47
    Laurence Gillian
    0

    Hey Anders,

    I used the following package from Package Files:

    TeaCommerce 3.0.8 (uploaded 01/03/2016)
    https://our.umbraco.org/FileDownload?id=16008

    For the time being I have rolled back to the previous version and this resolves the errors, however I'm keen to update to the latest for the other improvements.

    What's the best way to debug this? On some further examination I found the other payment provider (Stripe) was also failing, so it's not limited to PayPal.

    I do have a Price calculator that hooks into TeaCommerce so I wondered if this was the cause, but the error still occurs when this is removed from the solution.

    Many thanks, Laurie

  • Rune Grønkjær 1296 posts 2863 karma points
    Jun 01, 2016 @ 09:35
    Rune Grønkjær
    100

    Hi Laurence,

    I have build a new version of Tea Commerce for Umbraco 6 (3.1.0) with the new versions of the payment providers.

    Please try installing that and let us know if that does the trick. https://our.umbraco.org/projects/website-utilities/tea-commerce/

    /Rune

  • Laurence Gillian 595 posts 1211 karma points
    Jun 02, 2016 @ 09:31
    Laurence Gillian
    0

    Seem to have fixed it! Thank-you.
    I'll run a few more tests and then mark as resolved! :-D
    Laurie

  • Rune Grønkjær 1296 posts 2863 karma points
    Jun 02, 2016 @ 09:48
    Rune Grønkjær
    0

    That's fantastic. Thanks for letting us know!

  • Laurence Gillian 595 posts 1211 karma points
    Jun 02, 2016 @ 10:20
    Laurence Gillian
    0

    Checkout works, however when I dig into the logs, we are now having a ThreadAbortExpection reported by TeaCommerce each time we post to TC.

    2016-06-02 11:08:34,789 [185] ERROR 
    TeaCommerce.Umbraco.Configuration.Infrastructure.Logging.LoggingProvider - [Thread 150] Tea Commerce FormPost error
    
    --- Form data:
    -- storeId = "1"
    -- returnUrl = "/shop/basket/confirmation/"
    -- AddOrUpdateOrderProperties = "properties : properties"
    -- properties = 
        "shipping_firstName:shippingFirstName,
         shipping_lastName:shippingLastName, 
         shipping_streetAddress:shippingStreetAddress12, 
         shipping_streetAddress1:shippingStreetAddress1, 
         shipping_streetAddress2:shippingStreetAddress2,   
         shipping_city:shippingCity, 
         shipping_zipCode:shippingZipCode, 
         comments:comments"
     -- SetCurrentShippingCountry = "countryId"
     -- countryId = "1"
     -- shippingStreetAddress12 = "Street 1, Street 2"
     -- shippingFirstName = "Laurence"
     -- shippingLastName = "G"
     -- shippingStreetAddress1 = "Street 1"
     -- shippingStreetAddress2 = "Street 2"
     -- shippingCity = "City"
     -- shippingState = ""
     -- shippingZipCode = "ZIP"
     -- shippingCountry = "1"
     -- comments = ""
     - Exception: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.AbortCurrentThread()
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()
    System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.AbortCurrentThread()
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()
    
  • Anders Burla Johansen 2560 posts 8256 karma points
    Jun 02, 2016 @ 10:47
    Anders Burla Johansen
    0

    Is that always or only for the payment provider part?

  • Laurence Gillian 595 posts 1211 karma points
    Jun 02, 2016 @ 10:52
    Laurence Gillian
    0

    Not when adding products, just when posting Billing / Shipping / Comments, etc!

  • Anders Burla Johansen 2560 posts 8256 karma points
    Jun 03, 2016 @ 06:13
    Anders Burla Johansen
    0

    And that wasent there before? Just trying to figure out if a bug was introduced. Could you try and strip down until you know which part that makes the thread abort. Then it will be way easier for us to debug :)

  • Rune Grønkjær 1296 posts 2863 karma points
    Jun 03, 2016 @ 07:05
    Rune Grønkjær
    0

    Hi Guys,

    Im pretty sure thats a known bug, which have been fixed, but has not yet been published. Does the cart flow work? It should. The error logging should just be a cosmetic bug.

    /Rune

  • Rune Grønkjær 1296 posts 2863 karma points
    Jun 03, 2016 @ 07:33
    Rune Grønkjær
    0
Please Sign in or register to post replies

Write your reply to:

Draft