Having a hard time understanding the order process with the starter kit
Hi guys,
I've setup the tea commerce starter kit (which looks really nice btw) but I'm having a hard time setting it up with a payment provider. I've picked Sage pay as the provider in the 'payment methods' and clicked the load standard settings button. However I'm now confused about what I should select for the continue/cancel urls. I've had a look at the sage pay tutorial (http://anders.burla.dk/umbraco/tea-commerce/using-sage-pay-with-tea-commerce/) but I'm still confused.
When I look in the content tree at cart, the order process works until I get to step 4. From what I can see in the content tree, there is a step 5 - payment, but a) that page has no content/macros and b) the user doesn't seem to be directed there after step 4. When I click on the 'Payment' button it goes off to, from what I can see, the 'continue' url I should've picked for my payment provider. But if I'm using Sage pay, what url should I be inputting here?? Same for the cancel url.. I'm really confused.
I though the 'continue' url was the url that the payment provider will direct the user to IF the transaction was successful. The 'cancel' url is supposed to be the one the user is directed to if the order is cancelled on the payment page surely?
I suppose what I'm asking is a really simple explanation of what's actually happening in this process. I'm really confused.
Sorry if I haven't explained this very well - it's late and my brain's fried :)
Your continue url and cancel url is the url's that you want SagePay to redirect to when the payment is completed or the payment is cancelled. So your continue url should be your step 5 of the cart in the starter kit.
If step 4 won't work correctly (redirects to your continue url) - then its properly some of the settings for your "Credit card/Sage pay" payment method that isnt correct. Try look in the "umbracoLog" database table and find a record that starts with "Tea Commerce - Sage" - this should give you an idea of the error.
Having looked at it with a fresh set of eyes the following morning I was able to get a better grasp of it all :).
One question I do have is how to integrate the sage pay iframe (http://www.sagepay.com/sage-pay-server-inframe-integration). In theory, should it not just be a case of embedding the iframe within step 5 of the starter kit and getting step 4 to redirect to that instead? Will this require a lot of changes to the starter kit process? I imagine it'll interfere with the payment provider setup surely?
Ahh great you got some sleep and figured out what to do :)
About the payment process - out of the box we support the Sage Pay server integration. But if you would like to make the Inframe version you can do that using their API and integrate it with Tea Commerce. Our out of the box payment providers are open source and can be downloaded here. You can use them to see how things are done normally - https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers
But some providers need to tweak the Tea Commerce standard payment processing workflow - but you have to dig into the Sage Pay api to see how to do it.
If you want us to do the programming we also do work on an hourly basis. We have done lots of custom stuff for other Umbraco devs.
Having a hard time understanding the order process with the starter kit
Hi guys,
I've setup the tea commerce starter kit (which looks really nice btw) but I'm having a hard time setting it up with a payment provider. I've picked Sage pay as the provider in the 'payment methods' and clicked the load standard settings button. However I'm now confused about what I should select for the continue/cancel urls. I've had a look at the sage pay tutorial (http://anders.burla.dk/umbraco/tea-commerce/using-sage-pay-with-tea-commerce/) but I'm still confused.
When I look in the content tree at cart, the order process works until I get to step 4. From what I can see in the content tree, there is a step 5 - payment, but a) that page has no content/macros and b) the user doesn't seem to be directed there after step 4. When I click on the 'Payment' button it goes off to, from what I can see, the 'continue' url I should've picked for my payment provider. But if I'm using Sage pay, what url should I be inputting here?? Same for the cancel url.. I'm really confused.
I though the 'continue' url was the url that the payment provider will direct the user to IF the transaction was successful. The 'cancel' url is supposed to be the one the user is directed to if the order is cancelled on the payment page surely?
I suppose what I'm asking is a really simple explanation of what's actually happening in this process. I'm really confused.
Sorry if I haven't explained this very well - it's late and my brain's fried :)
Hi Alimac
Your continue url and cancel url is the url's that you want SagePay to redirect to when the payment is completed or the payment is cancelled. So your continue url should be your step 5 of the cart in the starter kit.
If step 4 won't work correctly (redirects to your continue url) - then its properly some of the settings for your "Credit card/Sage pay" payment method that isnt correct. Try look in the "umbracoLog" database table and find a record that starts with "Tea Commerce - Sage" - this should give you an idea of the error.
Kind regards
Anders
Thanks Anders,
Having looked at it with a fresh set of eyes the following morning I was able to get a better grasp of it all :).
One question I do have is how to integrate the sage pay iframe (http://www.sagepay.com/sage-pay-server-inframe-integration). In theory, should it not just be a case of embedding the iframe within step 5 of the starter kit and getting step 4 to redirect to that instead? Will this require a lot of changes to the starter kit process? I imagine it'll interfere with the payment provider setup surely?
Thanks
Ahh great you got some sleep and figured out what to do :)
About the payment process - out of the box we support the Sage Pay server integration. But if you would like to make the Inframe version you can do that using their API and integrate it with Tea Commerce. Our out of the box payment providers are open source and can be downloaded here. You can use them to see how things are done normally - https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers
But some providers need to tweak the Tea Commerce standard payment processing workflow - but you have to dig into the Sage Pay api to see how to do it.
If you want us to do the programming we also do work on an hourly basis. We have done lots of custom stuff for other Umbraco devs.
Kind regards
Anders
Thanks Anders!
is working on a reply...