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)
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?
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.
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 :)
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.
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!
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
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
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
Seem to have fixed it! Thank-you.
I'll run a few more tests and then mark as resolved! :-D
Laurie
That's fantastic. Thanks for letting us know!
Checkout works, however when I dig into the logs, we are now having a ThreadAbortExpection reported by TeaCommerce each time we post to TC.
Is that always or only for the payment provider part?
Not when adding products, just when posting Billing / Shipping / Comments, etc!
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 :)
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
I have released a new version of Tea Commerce with the bug fix: https://our.umbraco.org/projects/website-utilities/tea-commerce/
https://documentation.teacommerce.net/revision-history/
Have a nice weekend
/Rune
Tea Solutions Webbureau
is working on a reply...