Hi there, i am desperately trying to get a website live for my client who uses PayPal as their payment gateway. When i go through from the website to PayPal my order is correct in terms of content and prices, the money is taken from PayPal and i get a confirmation email from PayPal. My problem comes when i click the link to return to the main site from PayPal, i would assume it should go to TC confirmation page allowing the customer to print out the order, instead it goes to the confirmation page but says "Your cart is empty". This is not the case as there are still items in my basket visible at the top of the screen, if i click this then i am taken to stage 1 of the checkout process with items in my basket. Why am i not being taken to the complete confirmation page and then ultimately clearing out the basket? Many thanks Richard
I came across a similar issue in the last few days my case was solved after realising that a couple of the TC2 starterkit scripts contained hardcoded template node IDs. I had created new templates for my store and so these scripts failed (on the confirmation page) because they didn't recognise the new template IDs. If that sounds similar to your case then take a look at the following scripts:
cart/view-customer-information.cshtml
cart/view-order-line-overview.cshtml
You will see there are hardcoded template nodeIds - check the database (umbraco templates table) to find out the node Ids of the templates that match your new ones.
I hope that helps.
PS: I have recently upgaded to TC2.1.2 and my OrderFinalized event appears to be no longer triggering - I'm not sure whether that's related and I will post separately on that.
Thanks Martin, unfortunately that all looked ok from our point of view.
We are thinking this is morning of a simple issue, it appears that PayPal require an SSL url to come back to rather than a standard http: - can anyone confirm this?
We have only tested using there sandbox account so I dont know about the live PayPal. But I know they have something about SLL. But it looks like the wrong cart template is being rendered. Try and verify that the order is finalized in the client - use TC.getCurrentFinalizedOrder() in the javascript console of your browser
I work with the original poster of the question and resolved the problem.
The issue turned out to be that the live paypal account had 2 email address's associated with with it. The primary address, wasn't the one we had been given so when the response came back to the callback, the business name wasn't matching what we had entered into the "business" paypal setting in teacommerce. Changing this to the primary email address fixed the issue.
Hopefully this will be of some use if anyone else hits a similar issue.
PayPal callback issue
Hi there, i am desperately trying to get a website live for my client who uses PayPal as their payment gateway. When i go through from the website to PayPal my order is correct in terms of content and prices, the money is taken from PayPal and i get a confirmation email from PayPal. My problem comes when i click the link to return to the main site from PayPal, i would assume it should go to TC confirmation page allowing the customer to print out the order, instead it goes to the confirmation page but says "Your cart is empty". This is not the case as there are still items in my basket visible at the top of the screen, if i click this then i am taken to stage 1 of the checkout process with items in my basket. Why am i not being taken to the complete confirmation page and then ultimately clearing out the basket? Many thanks Richard
Hi Richard,
I came across a similar issue in the last few days my case was solved after realising that a couple of the TC2 starterkit scripts contained hardcoded template node IDs. I had created new templates for my store and so these scripts failed (on the confirmation page) because they didn't recognise the new template IDs. If that sounds similar to your case then take a look at the following scripts:
You will see there are hardcoded template nodeIds - check the database (umbraco templates table) to find out the node Ids of the templates that match your new ones.
I hope that helps.
PS: I have recently upgaded to TC2.1.2 and my OrderFinalized event appears to be no longer triggering - I'm not sure whether that's related and I will post separately on that.
Cheers,
Martin
Hi Richard
First of - THANKS Martin for sharing your advice! That could be the problem - so do check that.
@Martin - I just wrote to you in your forum topic about the finalized event- it works on my machine with Tea Commerce 2.1.2.
Kind regards
Anders
Thanks Martin, unfortunately that all looked ok from our point of view.
We are thinking this is morning of a simple issue, it appears that PayPal require an SSL url to come back to rather than a standard http: - can anyone confirm this?
We have only tested using there sandbox account so I dont know about the live PayPal. But I know they have something about SLL. But it looks like the wrong cart template is being rendered. Try and verify that the order is finalized in the client - use TC.getCurrentFinalizedOrder() in the javascript console of your browser
i am getting "'_storeId' is undefined" Help would be appreciated
That is because you dont have a javascript variable named _storeId with the current store id - see the starter kit how that is done.
But you then need to change the JavaScript to: TC.getCurrentFinalizedOrder({storeId:1}); Don't know if you store id is one. But you get the point :)
Kind regards
Anders
I work with the original poster of the question and resolved the problem.
The issue turned out to be that the live paypal account had 2 email address's associated with with it. The primary address, wasn't the one we had been given so when the response came back to the callback, the business name wasn't matching what we had entered into the "business" paypal setting in teacommerce. Changing this to the primary email address fixed the issue.
Hopefully this will be of some use if anyone else hits a similar issue.
Hi Laurie
THANKS for sharing!!
Kind regards
Anders
is working on a reply...