Paypal Returns Customer To Login Screen

Hello,
Has anyone else experienced difficulties with the customer being returned to the login screen following a successful PayPal payment?
CS-Cart version is 4.9.3.SP1
1) We installed the PayPal Payments add-on (the standard one that ships with CS-Cart).
2) We configured a PayPal payment method (just PayPal standard)
3) We proceed through checkout and completed payment within PayPal (test mode / sandbox)
4) We click "Return to Merchant" but are returned to the customer login screen when we would have expected an order confirmation?
Looking at the Apache logs I can see an initial request to the order confirmation page:
GET /index.php?dispatch=checkout.complete&order_id=1234 HTTP/1.1" 302
But we can see that 302 redirects to the login screen:
GET /index.php?dispatch=auth.login_form&return_url=index.php%3Fdispatch%3Dcheckout.complete
Is this a known bug, or working as intended? Any assistance appreciated.
HappyFruitBat

Did you ever resolve this. We are having similar problem.

Did anyone found a solution to this problem? Is this a known bug? Is there any fix for this?

Yes, there is a bug there. And it is not related with PayPal only. We faced this issue with different payment processors. But as far as I know, CS-Cart still did not confirm it

Yes, there is a bug there. And it is not related with PayPal only. We faced this issue with different payment processors. But as far as I know, CS-Cart still did not confirm it


What are we doing until cs cart confirm it? Is there a solution? Even costumers that checkout as guest return to login page and not in the thank you page. Is this problem related to new cookie policy that Chrome has? (Samesite=None and secure)

Try to contact support team so that we can examine the issue on your server directly. It will help to confirm the issue

I checked the session.php file of the latest version and it seems to have the variables for the samesite cookie that Chrome needs. Change the variables to samesite=none and secure seems to return customer to the thank you page.

Do you mean the app/Tygh/Web/Session.php file?

Υεs the file in this directory.

I have noted recently that a few of the main add-on developers' websites do the same thing when paying with PayPal. On returning from payment you have to log in to their stores to get to the thank you page.

@Simtech, @soft-sold, @Cart-Power to name a few, you guys should fix this on your sites and pressure CS-Cart Devs to get this bug fixed ASAP

This is due to new Chrome cookie policy that the cookie must have the samesite=none and secure variables. All the other explorers handle it without problem.

This is due to new Chrome cookie policy that the cookie must have the samesite=none and secure variables. All the other explorers handle it without problem.

I use MS Edge but that is based on Chrome so perhaps it also has the new policy

Hİ i use nginx php7.4 and ubuntu 22 cs-cart 4.15.x version i get this error how can i solve this manually.
Thanks for all

Please contact us via Help Desk regrading this issue.

Hi,

Is there already an solution for this issue?
I send also a week ago an ticket but no reply from them

As far as I can see, my colleagues have provided you with an answer in the mentioned ticket :slight_smile: