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?
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.
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.
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.
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.
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 :)
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
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
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
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
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
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
The payment providers is open source: https://bitbucket.org/teasolutions/tea-commerce-tea-commerce-payment-providers
:)
Kind regards
Anders
Ah, cool. I didn't know that.
I've got bitbucket account and Tortoise HG installed.
How do I make a pull request/update the code?
Regards, Matt
Blogged about it.
Setting up PayPal for Tea Commerce
Let me know if I've missed anything.
Regards, Matt
I think there is a little info about pull requests here:
https://confluence.atlassian.com/display/BITBUCKET/Work+with+pull+requests
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
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 :)
Yes, just discovered that I need to fork it.
I use it for my source code but never do anything extravagant with it. :-)
I think I've done it. Hopefully correctly. :-P
is working on a reply...