Copied to clipboard

Flag this post as spam?

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


  • TimMather 67 posts 78 karma points
    Jun 13, 2013 @ 17:28
    TimMather
    0

    How do I get Order on a Success Page?

    I have integrated TeaCommerce v2 with a website (Umbraco v6.0.5) we are working on, we've used SagePage for a payment provider, when I run through the process everything works as expected, I think. Get redirected to SagePay, the order goes in as a New Order with the payment state as "Authorized" and I get an email.

    SagePay notification url goes to http://spshop.chocolategrape.co.uk/base/TC/PaymentCallback/1/SagePay/[orderid].aspx

    Once completed the system redirects to http://oursite.com/success/. How do I get the order id to this page so I can show a receipt? Can I somehow pass the order in the successurl settings for SagePay? Also when I'm logged in my cart stays full, does finalize order not empty the cart? Do I have to do that in my success page?

    I've also noticed the stock levels aren't reducing either so wondering if finalizedOrder is actually getting fired?

    Any help much appreciated.

    Thanks

    Tim

  • Anders Burla 2560 posts 8256 karma points
    Jun 17, 2013 @ 11:32
    Anders Burla
    0

    Hi Tim

    If the order has a payment state of "Authorized", then the order is indeed being finalized - the confirmation email confirms that to me.

    The order should be in the GetCurrentFinalizedOrder method call. Can you get that? If not - are you using JavaScript to genereate the payment form or using the HTML api? You should never finalize or move the order to a finaliszed state - Tea Commerce should do that.

    The stock level isnt change - Are you using the latest Tea Commerce version? And have you configured a sku for your product?

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft