Paypal: Always status "pending"

Phoca Cart - complex e-commerce extension
muweb
Phoca Enthusiast
Phoca Enthusiast
Posts: 77
Joined: 27 Mar 2019, 12:42

Paypal: Always status "pending"

Post by muweb »

Hello

If you pay with Paypal in my online shop the orders are always with status "pending". No matter if I have received the money, the payment with Paypal was canceled, and so on... the status is always pending.

In the options at Paypal "pending" is only set at "pending". What am I doing wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal: Always status "pending"

Post by Jan »

Hi, try to set the PayPal to Sandbox and enable Logging. In logs you can see if there was an answer from PayPal server and if it was able to change the status.

So if the PayPal server sends the status "Completed" and it is set correctly in Payment method:
Image

the status should automatically change to "completed" :idea:

Jan
If you find Phoca extensions useful, please support the project
muweb
Phoca Enthusiast
Phoca Enthusiast
Posts: 77
Joined: 27 Mar 2019, 12:42

Re: Paypal: Always status "pending"

Post by muweb »

That's funny. I have the same attitude, but it doesn't work for me.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal: Always status "pending"

Post by Jan »

So please try to use the Sandbox and enable logging and try to see the items in log - if there is even the answer from PayPal server.

Jan
If you find Phoca extensions useful, please support the project
muweb
Phoca Enthusiast
Phoca Enthusiast
Posts: 77
Joined: 27 Mar 2019, 12:42

Re: Paypal: Always status "pending"

Post by muweb »

Yes, the products it all displays correctly in Paypal. Also the shipping costs, it's all right.

Now I have completely removed the "pending" status from the options for paypal. Although the status is nowhere available, the order is displayed in this status...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal: Always status "pending"

Post by Jan »

Hi, important is, what the log says, if there was response from PayPal server at all :idea:

Jan
If you find Phoca extensions useful, please support the project
muweb
Phoca Enthusiast
Phoca Enthusiast
Posts: 77
Joined: 27 Mar 2019, 12:42

Re: Paypal: Always status "pending"

Post by muweb »

Hi Jan

Do you mean the system-log on the backend of phoca cart?
There it shows a log with the title "Payment - PayPal Standard - SENDING FORM TO PAYPAL"
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal: Always status "pending"

Post by Jan »

Ok, so this is first status, then you should get two next status messages from PayPal server, if there are no messages, seems like there was no answer from PayPal server and the order statuses will be not changed.

Did you try to test it with PayPal sandbox? Is your server accessible from internet without any limitation?

Jan
If you find Phoca extensions useful, please support the project
muweb
Phoca Enthusiast
Phoca Enthusiast
Posts: 77
Joined: 27 Mar 2019, 12:42

Re: Paypal: Always status "pending"

Post by muweb »

It's the same with Paypal Sandbox. It remains in the "pending" status even though the sandbox-money has been successfully transmitted.

I am not aware of any limitation on my server.
Or how could I check this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal: Always status "pending"

Post by Jan »

Hi, did you test it with enabled logging in Phoca Cart? Can you paste items from log here? When there are no answers from PayPal server, seems like it cannot access it :idea:

When you see errorLog on your server, are there some errors regarding PayPal API?

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