Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Sep 02, 2014 @ 12:54
    Matt Taylor
    0

    Orders are not being completed using PayPal (Sandbox)

    I'm using Umbraco 6.2.2 and TC 2.2.3.

    I've just put my site on the production server to test the PayPal payment method using the Sandbox.

    Notice I have is set to 'sale' mode.

    Everything is working fine at the PayPal end and I've got it set to auto redirect back to the site's confirmation page which happens.

    The confirmation page however is not displaying an order number and the order in the back-end is still in 'CART' mode with a payment state of 'Initialized'.

    PayPal is showing the status as 'Completed'.

    Is there somehing I have not configured? Any tips on how to debug what's not happening?

    Regards, Matt

  • Anders Burla 2560 posts 8256 karma points
    Sep 02, 2014 @ 13:00
    Anders Burla
    0

    First try and update to latest TC. Then check if you have setup IPN for Paypal correctly. I know that those sometimes doesnt get send by paypal in the sandbox mode for no reason.

    Kind regards
    Anders

  • Matt Taylor 873 posts 2086 karma points
    Sep 02, 2014 @ 18:00
    Matt Taylor
    0

    OK, I've upgraded TC to 2.3.2.

    I hadn't configure IPN but have enabled it now using http://XXXXXXX/tcbase/teacommerce/PaymentCallback/PayPal.aspx as the callback URL, adding the proper domain of course.

    I have also changed the business field from using the Merchant ID to the email address as mentioned in this post.

    Alas it hasn't made a difference.

    This is what the last IPN callback log item says:


    I notice that the notification url is different above to the one that I set. I imagine this is being overriden by the value set for the transaction by TC.

    I've also had a look in the Umbraco Trace log and I've seen a few of these, so could it just be a permissions problem?

    Process callback - Exception: System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\SoapmakersStore\paypal-callback-data.txt' is denied.

    Regards,

    Matt

     

  • Matt Taylor 873 posts 2086 karma points
    Sep 02, 2014 @ 18:17
    Matt Taylor
    100

    It's now working.

    I gave the apppool permission to write to the root and it's now happily completing the order.

    Seems a little silly that the inability to write to the callback log would break it especially as I don't tend have write permission set at that level.

    Perhaps this can be looked at.

    Regards, Matt

  • Anders Burla 2560 posts 8256 karma points
    Sep 03, 2014 @ 10:40
    Anders Burla
    0

    Great you got it working. Yeah that could be fixed. Maybe you want to make a pull request where a providers has a try catch around the callback log writing :)

    In 2.3.2 you should use /base and not /tcbase. It was removed in 1.4.4.1. And in v2 is is TC instead of /teacommerce. And you also need to provide the store id - so the URL is a bit different.

    Kind regards
    Anders

  • Matt Taylor 873 posts 2086 karma points
    Sep 03, 2014 @ 10:55
    Matt Taylor
    0

    A pull request? But Tea Commerce is closed source.

    Got you on the callback url. I think it's irrelevent what gets entered for this in the PayPal account as TC knows what to do and sets it. :-)

    I think I should blog about PayPal setup for TC, if only for myself.

    Regards,

    Matt

  • Anders Burla 2560 posts 8256 karma points
    Sep 03, 2014 @ 12:14
    Anders Burla
    0

    The payment providers is open source: https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers

    :)

    Kind regards
    Anders

  • Matt Taylor 873 posts 2086 karma points
    Sep 03, 2014 @ 12:21
    Matt Taylor
    0

    Ah, cool. I didn't know that.

  • Matt Taylor 873 posts 2086 karma points
    Sep 04, 2014 @ 17:58
    Matt Taylor
    0

    I've got bitbucket account and Tortoise HG installed.

    How do I make a pull request/update the code?

    Regards, Matt

  • Matt Taylor 873 posts 2086 karma points
    Sep 04, 2014 @ 22:28
    Matt Taylor
    0

    Blogged about it.

    Setting up PayPal for Tea Commerce

    Let me know if I've missed anything.

    Regards, Matt

    Setting up PayPal for Tea Commerce
  • Anders Burla 2560 posts 8256 karma points
    Sep 05, 2014 @ 08:29
    Anders Burla
    0

    I think there is a little info about pull requests here:
    https://confluence.atlassian.com/display/BITBUCKET/Work+with+pull+requests

  • Matt Taylor 873 posts 2086 karma points
    Sep 05, 2014 @ 13:31
    Matt Taylor
    0

    Thanks, that's better than the docs I found.

    I think the problem is that I don't see the 'Create pull request' option.
    Is it a permissions thing, do I need to be added to the repo?

    Regards, Matt

  • Anders Burla 2560 posts 8256 karma points
    Sep 05, 2014 @ 13:34
    Anders Burla
    0

    Did you fork the project on bitbucket. I think you need to do that to make a pull request. Havent done many pull requests so im not that good my self :)

  • Matt Taylor 873 posts 2086 karma points
    Sep 05, 2014 @ 13:36
    Matt Taylor
    0

    Yes, just discovered that I need to fork it.

    I use it for my source code but never do anything extravagant with it. :-)

  • Matt Taylor 873 posts 2086 karma points
    Sep 05, 2014 @ 14:17
    Matt Taylor
    0

    I think I've done it. Hopefully correctly. :-P

Please Sign in or register to post replies

Write your reply to:

Draft