After PayPal orderstatus stays on pending

Phoca Cart - complex e-commerce extension
Cliffdiver
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Apr 2020, 09:10

After PayPal orderstatus stays on pending

Post by Cliffdiver » 11 Jul 2021, 10:18

Hallo Jan,
I try to fix two problems.
First the important one. If a payment with paypal is successful, the orderstatus stays on pending. The infoscreen and mails are correct and say that everything went fine. Also the money is transferred from one paypal account to the other one. Only the status doesn't change.

Second: On Checkout I don't get redirected to PayPal. Only when I push the button "Click to get to PayPal" then it works.

I tested the above problems in Firefox, InternetExplorer, Chrome and Safari on different Systems (Apple, Windows). Also friends of mine tested it, and they all had the same issue.

Thanks in advance for your help.
Chris

Cliffdiver
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Apr 2020, 09:10

Re: After PayPal orderstatus stays on pending

Post by Cliffdiver » 15 Jul 2021, 18:02

I solved the problem with the redirect to paypal, but I can't find any hint, why the order status doesn't change after a successful payment with paypal.
I installed everything new, tested it without any overrides and it still doesn't work.
In the phoca logs I only find the lines "Sending Form to PayPal" but nohthing else. No Error, no nothing.
Also the server logs don't show any error.

I use the latest versions of joomla, phoca and so on.
PHP Version 7.4.

Any advice would be helpfull.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44104
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: After PayPal orderstatus stays on pending

Post by Jan » 16 Jul 2021, 16:52

Hi, when there is no log in Phoca Log, this seems like the PayPal server didn't contact your server. Is your server accessible? Did you try to find some more info about the payment on PayPal (some log, or some information). Did you try to test it with or without verifying SSL certificate?

Image

Jan
If you find Phoca extensions useful, please support the project

Cliffdiver
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Apr 2020, 09:10

Re: After PayPal orderstatus stays on pending

Post by Cliffdiver » 20 Jul 2021, 11:46

Hi Jan, I tried many things. With SSL and without SSL, with IPN and without IPN (paypal configuration), with automatic redirect from paypal to my website and so on.
All in all I don't get any confirmation from paypal to my website. Do I have to wait for the confirmation some minutes or is it immediate?
Do I need a special configuration in the htaccess file to allow the communication with my server?

Cliffdiver
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Apr 2020, 09:10

Re: After PayPal orderstatus stays on pending

Post by Cliffdiver » 20 Jul 2021, 11:53

The only thing which is a little bit confusing is, that the time of the log files is 2 hours in the past.
If I order at 12am, the log file is 10 am.

Cliffdiver
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 05 Apr 2020, 09:10

Re: After PayPal orderstatus stays on pending

Post by Cliffdiver » 21 Jul 2021, 08:52

Good morning,

now I've fixed the last problem and I'm a bit shy to say the solution because it's an admission to my stupidity :-)
Never forget, that you protected your website durign development with an htaccess password and let your browser automatic login. This prevents paypal to comunicate with your website by throwing back an 401 error, which means "Unauthorised access". By disabling the password protection in the htaccess file, everything goes smooth.

The problem with the redirect to payal was also simple... in the end everything is simple :-)
The last post of this forum question, explains the solution viewtopic.php?f=44&t=62219&start=10

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44104
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: After PayPal orderstatus stays on pending

Post by Jan » 23 Jul 2021, 15:09

Hi, thank you very much for this info, yes, this is very important info, I will write this notice to documentation.

Thank you, Jan
If you find Phoca extensions useful, please support the project

Post Reply