INNEREXCEPTION: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TeaCommerce.Data.Payment.DefaultPaymentProvider.GetContinueUrl(Dictionary`2 settings) at TeaCommerce.Base.PaymentContinue(String alias, String encryptedOrderId)</error>
As you can see, I have an issue with the "acceptUrl" key not being found.
Now, on the payment screen for the Credit card payment type I have set up my url correctly:
Is there anywhere else where i should have set that up?
Please check your payment providers, to see if the acceptUrl is correct. You do that in the Tea Commerce section. The acceptUrl must be the full url to the confirmation page. In our new starterkit the url is: http://starterkit.teacommerce.dk/en/cart/confirmation.aspx.
Due to the fact that we have umbraco under TFS we have set up a special folder where we keep the dlls that we reference. So i had forgot to override those dlls with the new dlls of tea commerce.
Now evertything works all right, thank you very much.
Error on order complete
hello guys,
I have a really nasty error when completing an order.
<error>MESSAGE:
Exception has been thrown by the target of an invocation.
STACKTRACE:
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at TeaCommerce.Presentation.TeaCommerceBase.RequestModule.invokeMethod(restExtension myExtension, Object[] paras)
INNEREXCEPTION:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at TeaCommerce.Data.Payment.DefaultPaymentProvider.GetContinueUrl(Dictionary`2 settings)
at TeaCommerce.Base.PaymentContinue(String alias, String encryptedOrderId)</error>
As you can see, I have an issue with the "acceptUrl" key not being found.
Now, on the payment screen for the Credit card payment type I have set up my url correctly:
Is there anywhere else where i should have set that up?
Thank you.
Hi Raluca,
What version of Tea Commerce are you running. I believe we had a bug like that a couple of releases ago.
/Rune
Wow, that was fast.
My version of TeaCommerce is Tea-Commerce-1.4.1.0-for-.NET-4
Yep, please try and update to the latest version. I think we fixed it in 1.4.1.1.
Just download the package and install it. It will upgrade with no problems.
/Rune
Hello Rune,
Unfortunately, updating TeaCommerce did not solve my problem. Is this acceptUrl set in any config file?
Thank you for your help
Hi Raluca,
Please check your payment providers, to see if the acceptUrl is correct. You do that in the Tea Commerce section. The acceptUrl must be the full url to the confirmation page. In our new starterkit the url is: http://starterkit.teacommerce.dk/en/cart/confirmation.aspx.
/Rune
Hello Rune,
This is lifted directly form the database, so my acceptUrl and declineUrl are indeed set up.
79 2 0 acceptURL http://localhost:64332/de/teacommerce/cart/order-confirmation/
80 2 0 declineURL http://localhost:64332/de/teacommerce/cart/payment-error/
81 1 0 acceptURL http://localhost:64332/de/teacommerce/cart/order-confirmation/
82 1 0 declineURL http://localhost:64332/de/teacommerce/cart/payment-error/
Thank you for your time.
Ok, it was my mistake.
Due to the fact that we have umbraco under TFS we have set up a special folder where we keep the dlls that we reference. So i had forgot to override those dlls with the new dlls of tea commerce.
Now evertything works all right, thank you very much.
Aah, cool. That can happen :)
/Rune
Hi Raluca
Is it possible to mark your own post as the answer - just to help others to quickly find the solution for this problem :)
Kind regards
Anders
Hello Anders,
I've marked my reply, but it was really Rune's answer that did the trick.
Cheers,
Raluca
is working on a reply...