Payment Successful - But Status Not Updating

Phoca Cart - complex e-commerce extension
NASS Sundials
Phoca Member
Phoca Member
Posts: 10
Joined: 01 Oct 2022, 23:30

Payment Successful - But Status Not Updating

Post by NASS Sundials »

I'm using PhocaCart 3.5.8 on Joomla 3.10.11. We have a simple shop with few items and I'm debugging with the PayPal sandbox.
Returning from PayPal to the user browser, I get the msg "Your order and your payment have been successfully processed, thank you." and in the System Log, " Notice Payment - PayPal Standard - SUCCESS" I have set "confirmed" email for customer (a PayPal dummy) and cc. email for a valid address I can monitor. Not receiving the cc. email and the order status remains "Pending". What have I failed to set???

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

Re: Payment Successful - But Status Not Updating

Post by Jan »

Hi, enable logging and see if you get a message from PayPal server into the log. There is message when sending to PayPal and message when getting info from PayPal.

Try to enable/disable for test the parameter: Verify SSL Certificate too:

Image

https://www.phoca.cz/documents/116-phoc ... l-standard

Jan
If you find Phoca extensions useful, please support the project
NASS Sundials
Phoca Member
Phoca Member
Posts: 10
Joined: 01 Oct 2022, 23:30

Re: Payment Successful - But Status Not Updating

Post by NASS Sundials »

Thanks for suggestion, but even though https site, had Phoca Cart SSL option turned off.

Phoca Cart log and PayPal success message as follows:
Type: Notice
Title: Payment - PayPal Standard - SUCCESS
Message:

Order Id: 81
Txn Id: 0GM06305BK3695445
Message: Payment successfully made
Report: --------------------------------------------------------------------------------
[10/04/2022 5:09 PM] - https://www.sandbox.paypal.com/cgi-bin/webscr (curl)
--------------------------------------------------------------------------------
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Connection: close
Content-Length: 8
Content-Type: text/html; charset=utf-8
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Content-Security-Policy: default-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline'; style-src 'self' https://*.paypal.com https://*.paypalobjects.com 'unsafe-inline';
...
Paypal-Debug-Id: 6f8f440305e69
Set-Cookie: LANG=en_US%3BUS; Max-Age=31556; Domain=.paypal.com; Path=/; Expires=Wed, 05 Oct 2022 01:55:31 GMT; HttpOnly; Secure
...
[then invoice info]

From what I can tell, PayPal content security policy shows unsafe-inline [no SSL?] but still reports success. What triggers confirmed status??

In Phoca Cart Order Statuses, I have a status called "NASS_Order_Confirmed" but unsure how it interprets the above PayPal message.

Sundials
NASS Sundials
Phoca Member
Phoca Member
Posts: 10
Joined: 01 Oct 2022, 23:30

Re: Payment Successful - But Status Not Updating

Post by NASS Sundials »

SOLVED. My error. It was the email status that needed to be set to COMPLETE.

Thanks for the great software.
User avatar
adroussel
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Feb 2022, 16:39

Re: Payment Successful - But Status Not Updating

Post by adroussel »

Hi
I'm having the same issue and I don't get your solution of setting the 'email status' to COMPLETE.
There is nothing such as email status that I could find.
Can you please precise?

Thanks a lot.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Payment Successful - But Status Not Updating

Post by Jan »

So there can be two problems:

- the status is not set

Check if statuses are correctly set in Payment method options - PayPal:

Image

- or you don't get confirmation email from payment gateway

Enable logging and see Logs to get information if PayPal contacted your server.

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