Copied to clipboard

Flag this post as spam?

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


  • Richard Bennett 9 posts 30 karma points
    Jun 11, 2013 @ 11:10
    Richard Bennett
    0

    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

  • Martin Robinson 40 posts 61 karma points
    Jun 11, 2013 @ 12:21
    Martin Robinson
    0

    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:

    • 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.

    Cheers,
    Martin

     

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

    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

  • Richard Bennett 9 posts 30 karma points
    Jun 11, 2013 @ 17:29
    Richard Bennett
    0

    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?

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

    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

  • Richard Bennett 9 posts 30 karma points
    Jun 11, 2013 @ 18:30
    Richard Bennett
    0

    i am getting "'_storeId' is undefined"  Help would be appreciated

  • Anders Burla 2560 posts 8256 karma points
    Jun 17, 2013 @ 10:56
    Anders Burla
    0

    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

  • Laurie 6 posts 37 karma points
    Jun 20, 2013 @ 01:57
    Laurie
    1

    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.

  • Anders Burla 2560 posts 8256 karma points
    Jun 20, 2013 @ 10:51
    Anders Burla
    0

    Hi Laurie

    THANKS for sharing!!

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft