Problem when user cancels PayPal Payment (TeaCommerce 1)
Hi,
i've an older TeaCommerce project here (1.4.4.5) and umbraco 4.7.2 using normal sessions for the cart.
Anything works fine, except when a user cancels a paypal payment and returns to the webshop. the basket cannot be edited anymore. every call to the teacommere api (JS) returns a 500 internal server error and on every page request on the website there is a new order generated in the backend.
for example increasing or decreasing product quantitys in the cart, the ajax call is correct: /base/teacommerce/AddOrderLine/1181/-1.aspx but that returns 500 internal server error.
the payment status of the cancelled paypal order is set to "inital" in the teacommerce backend.
Can you see in your log what the error is. The 500 error is a generic error message that you get. You need to look in the log files to see what has happend.
Nothing, as the umbraco version is 4.7.2 there is no log4net folder. in the database table, there are no error logs regarding this problem. other errors get logged correctly (eg smtp errors on sending out confirmation mails).
If you run your site locally you should be able to get the description of the 500 error. Set the customErrors to Off and also have the pass-through variable in your web.config. And run in debug - then you should be able to see it.
thx for the hint. Could locate an error in a custom OrderPropertiesUpdated Event where we handle our coupon logic. the strange thing is, that this error only occurs when a payment gets cancelled.
The only problem that is left now is, that the inital order gets duplicated and the user gets a new order id. the "old" order still has payment status inital.
When you go to payment and is redirected to Paypal - Tea Commerce locks the order for any changes. If you change the order using AddOrdUpdateOrderLine, AddOrUpdateOrderProperties etc then the order is cloned and the new info is added. So that can by why you get duplicates. Dont change the order after you have generated the payment form.
Problem when user cancels PayPal Payment (TeaCommerce 1)
Hi,
i've an older TeaCommerce project here (1.4.4.5) and umbraco 4.7.2 using normal sessions for the cart.
Anything works fine, except when a user cancels a paypal payment and returns to the webshop. the basket cannot be edited anymore. every call to the teacommere api (JS) returns a 500 internal server error and on every page request on the website there is a new order generated in the backend.
thx in advance for any help.
Andreas
for example increasing or decreasing product quantitys in the cart, the ajax call is correct: /base/teacommerce/AddOrderLine/1181/-1.aspx but that returns 500 internal server error.
the payment status of the cancelled paypal order is set to "inital" in the teacommerce backend.
Thx,
Andi
Can you see in your log what the error is. The 500 error is a generic error message that you get. You need to look in the log files to see what has happend.
Kind regards
Anders
Hi Anders,
checked everything but there are no entries in the umbracoLog table regarding this 500 error. any other ideas?
Thanks,
Andreas
Nothing in the App_Data/Logs or in the database table wioth logs?
Kind regards
Anders
Nothing, as the umbraco version is 4.7.2 there is no log4net folder. in the database table, there are no error logs regarding this problem. other errors get logged correctly (eg smtp errors on sending out confirmation mails).
Cheers,
Andreas
If you run your site locally you should be able to get the description of the 500 error. Set the customErrors to Off and also have the pass-through variable in your web.config. And run in debug - then you should be able to see it.
Kind regards
Anders
Hi Anders,
thx for the hint. Could locate an error in a custom OrderPropertiesUpdated Event where we handle our coupon logic. the strange thing is, that this error only occurs when a payment gets cancelled.
The only problem that is left now is, that the inital order gets duplicated and the user gets a new order id. the "old" order still has payment status inital.
Kind regards,
Andreas
When you go to payment and is redirected to Paypal - Tea Commerce locks the order for any changes. If you change the order using AddOrdUpdateOrderLine, AddOrUpdateOrderProperties etc then the order is cloned and the new info is added. So that can by why you get duplicates. Dont change the order after you have generated the payment form.
Kind regards
Anders
Alright, i understand. thanks for your help!
Andreas
is working on a reply...