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.
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?
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?
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
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
is working on a reply...