Copied to clipboard

Flag this post as spam?

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


  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 20, 2014 @ 13:55
    Andreas Kaltenhuber
    0

    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

  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 20, 2014 @ 14:09
    Andreas Kaltenhuber
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Mar 21, 2014 @ 08:50
    Anders Burla
    0

    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

  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 21, 2014 @ 09:14
    Andreas Kaltenhuber
    0

    Hi Anders,

    checked everything but there are no entries in the umbracoLog table regarding this 500 error. any other ideas?

    Thanks,

    Andreas

     

     

  • Anders Burla 2560 posts 8256 karma points
    Mar 25, 2014 @ 08:57
    Anders Burla
    0

    Nothing in the App_Data/Logs or in the database table wioth logs?

    Kind regards
    Anders

  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 25, 2014 @ 09:08
    Andreas Kaltenhuber
    0

    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

  • Anders Burla 2560 posts 8256 karma points
    Mar 25, 2014 @ 09:45
    Anders Burla
    0

    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

  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 25, 2014 @ 11:28
    Andreas Kaltenhuber
    0

    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

     

     

     

  • Anders Burla 2560 posts 8256 karma points
    Mar 25, 2014 @ 13:46
    Anders Burla
    100

    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

  • Andreas Kaltenhuber 107 posts 286 karma points
    Mar 25, 2014 @ 13:49
    Andreas Kaltenhuber
    0

    Alright, i understand. thanks for your help!

    Andreas

Please Sign in or register to post replies

Write your reply to:

Draft