It seems that I have a similar issue.. when I was testing in sandbox mode the orders were completed we get the confirmation email..
after I changed PayPals settings in Tea Commerce to the real PayPal account details, we are able to complete orders .. the payment is registred in the business PayPal account and in ICN.. and we get the confimation page in step 6, but the Cart object doesn't seem to change to an Order object .. it Tea Commerce the order still is registred as Cart and with PayPal as initialized in payment state.. probably also therefore there isn't send a confirmation email..?
It seems that the issue was because we changed the primary email in the PayPal business account the another one and it was another registred in Tea Commerce (but was still registred in the business PayPal account - just not set as primary anymore).
I just changed the email to be the same as the one set as primary in the business PayPal account.. and it now seems to work - I get the confirmation email and the Cart object is changed to an Order object.
Our mistake - just have to type the right characters in the fields :)
I have finally managed to update TeaCommerce, but now I get error when trying to go to PayPal:
Exception has been thrown by the target of an invocation. STACKTRACE: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
INNEREXCEPTION: System.IndexOutOfRangeException: Index was outside the bounds of the array. at TeaCommerce.Api.Web.FormPostHandler.b__8(String i) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector) at TeaCommerce.Api.Web.FormPostHandler.GetActionSettings(String action) at TeaCommerce.Api.Web.FormPostHandler.GetMethodsFromFormFields() at TeaCommerce.Api.Web.FormPostHandler.FormPost() at TeaCommerce.Umbraco.Web.RestExtensions.FormPost()]]>
Paypal order status still set to "Initialized" after payment
Hello,
I have set PayPal as my payment provider. In PayPal account I went to:
"Profile => My Selling Tools => Getting paid and managing my risk => Instant payment notifications"
and set Notification URL to
http://myPublicServerIP/tcbase/teacommerce/PaymentCallback/PayPal.aspx
as mentioned in
http://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/30399-Integration-with-Paypal
, but that didn't work - so i started experimenting using browser and i see the proper Notification URL should be:
http://myPublicServerIP/base/TC/PaymentCallback/StoreId/PayPal/OrderId
I tried to set URL in PayPal http://myPublicServerIP/base/TC/PaymentCallback/PayPal/, but still no success. What am I doing wrong?
Are you using Tea Commerce v1 or v2?
Kind regards
Anders
Using Teacommerce 2.1.1 and Umbraco 6.0.3
Regards,
Marius
Upgrade to Tea Commerce 2.2 - see the revision history for changes - http://documentation.teacommerce.net/revision-history/
Notification URL should be /base/TC/PaymentCallbackWithoutOrderId/{replace with your store id}/PayPal/{id of your payment method}
Now that should do the trick :)
Kind regards
Anders
Hello,
I have lost all tea commerce tables in database after updating. How to fix it?
Updating Umbraco or? Tea Commerce doesn't uninstall DB tables unless you uninstall TC.
Kind regards
Anders
Hi Anders..
It seems that I have a similar issue.. when I was testing in sandbox mode the orders were completed we get the confirmation email..
after I changed PayPals settings in Tea Commerce to the real PayPal account details, we are able to complete orders .. the payment is registred in the business PayPal account and in ICN.. and we get the confimation page in step 6, but the Cart object doesn't seem to change to an Order object .. it Tea Commerce the order still is registred as Cart and with PayPal as initialized in payment state.. probably also therefore there isn't send a confirmation email..?
Do you know what might cause this issue?
/Bjarne
In PayPal I get a transaction-id registred, but in Tea Commerce I only see the order a Cart object without a transaction-id..
btw. it's Tea Commerce v. 2.2.0 and Umbraco v.6.1.6 ..
/Bjarne
If I manually finalize the Cart with the transaction-id and amount it's changed to an order object in Tea Commerce..
so it seems to be somewhere between payment at PayPal and when the user come back to the shop and see the confirmation page.
/Bjarne
Seems like the IPN isnt being executed correctly. Try and check the log file to see if you see any data from paypal
Hi Anders..
Yes, I get some errors in the logs from PayPal - here is some of the latest:
I am thinking if it might be because the primary email in the PayPal not is matching the one in Tea Commerce.. I'll change it to see if that fix it..
/Bjarne
Hi Anders..
It seems that the issue was because we changed the primary email in the PayPal business account the another one and it was another registred in Tea Commerce (but was still registred in the business PayPal account - just not set as primary anymore).
I just changed the email to be the same as the one set as primary in the business PayPal account.. and it now seems to work - I get the confirmation email and the Cart object is changed to an Order object.
Our mistake - just have to type the right characters in the fields :)
/Bjarne
I have finally managed to update TeaCommerce, but now I get error when trying to go to PayPal:
Tea Commerce 2.2.1, Umbraco 6.0.3
This exception was not thrown in TC 2.1.1
Another error occurs while adding items to cart:
Looks like something didnt upgrade correctly. Try and install it again.
Ok, updated to 2.2.2, it's working now. Thank you.
So far, so good. IPN was sent to proper (I think) url and got OK response:
Message ID 30J21944H64670839
12/17/2013 00:02 PST
Original
12/17/2013 00:02 PST
http://myhostname/base/TC/PaymentCallback/1/PayPal/788d3f5e-a626-4bf3-83a0-6e4461552cc7.aspx
200
Sent
0
8V328103P6546983B
Transaction made
But payment still not captured (order in Payment Initialised state). In Umbraco log I have Exception:
2013-12-17 08:54:10,222 [32] INFO Umbraco.Core.PluginManager - [Thread 43] Starting resolution types of Umbraco.Web.BaseRest.RestExtensionAttribute
2013-12-17 08:54:10,222 [32] INFO Umbraco.Core.PluginManager - [Thread 43] Completed resolution of types of Umbraco.Web.BaseRest.RestExtensionAttribute, found 2 (took 0ms)
2013-12-17 08:54:10,222 [32] INFO Umbraco.Core.PluginManager - [Thread 43] Starting resolution types of umbraco.presentation.umbracobase.RestExtension
2013-12-17 08:54:10,222 [32] INFO Umbraco.Core.PluginManager - [Thread 43] Completed resolution of types of umbraco.presentation.umbracobase.RestExtension, found 2 (took 0ms)
2013-12-17 08:54:10,238 [32] INFO umbraco.BusinessLogic.Log - [Thread 43] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: -1 | Comment: PayPal(KOSZYK20) - Process callback - Exception: System.UnauthorizedAccessException: Access to the path 'C:\inetpub\myapplication\paypal-callback-data.txt' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at TeaCommerce.Api.Web.PaymentProviders.APaymentProvider.LogRequestToFile(HttpRequest request, String filePath, Boolean logPostData, Boolean logGetData)
at TeaCommerce.PaymentProviders.Classic.PayPal.ProcessCallback(Order order, HttpRequest request, IDictionary`2 settings)
2013-12-17 08:54:35,466 [32] INFO Umbraco.Core.PluginManager - [Thread 53] Starting resolution types of Umbraco.Web.BaseRest.RestExtensionAttribute
2013-12-17 08:54:35,466 [32] INFO Umbraco.Core.PluginManager - [Thread 53] Completed resolution of types of Umbraco.Web.BaseRest.RestExtensionAttribute, found 2 (took 0ms)
2013-12-17 08:54:35,466 [32] INFO Umbraco.Core.PluginManager - [Thread 53] Starting resolution types of umbraco.presentation.umbracobase.RestExtension
2013-12-17 08:54:35,466 [32] INFO Umbraco.Core.PluginManager - [Thread 53] Completed resolution of types of umbraco.presentation.umbracobase.RestExtension, found 2 (took 0ms)
May I ask for help?
I resolved the issue by granting extended privileges to 'myapplication' folder. IPN works fine, thank you for help.
Regards,
Marius
I'm having a very similar issue right now, and have some very restrictive permissions in my hosting environment.
Can you remember what permissions you needed to give?
You should have the modify rights for the folder containing your entire website.
is working on a reply...