Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
8749 Zobrazení

Hi,

I have configured cybersource as my payment gateway, I am able to navigate to cybersource and make a payment and able to return back to the site successfully.

But, user is getting logged out on redirecting back from the payment gateway, this is not happening all the time, but it is occurring randomly.

I identified in my networks that the cookies are getting removed on redirection. Is there any reason for that ? I have set Samesite=None and Secure=False in cookies.

Thanks!

Avatar
Zrušit

is it solved? let me know if it's solved .

Autor Nejlepší odpověď

Yes, it worked fine. The issue was because of the latest changes made by firefox and chrome restricting the cookies based on samesite. If samesite=None and Secure it is working fine


Avatar
Zrušit

where do i need add this configuration?

Autor

You need to set those configuration at webserver level.. it is not working with python requests.

apache?

Autor

I did that in nginx, I don't use apache much.

Nejlepší odpověď

I was also facing this issue, after searching in odoo code I found  save_session=False in the controller, which worked for me.

So just add  save_session=False in the controller 

this is the controller for the reference :

@http.route('/payment/takepayment/response', type='http', auth='public', csrf=False, save_session=False)

Avatar
Zrušit
Nejlepší odpověď

Can you post your nginx.conf Ajay?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 24
6730
1
říj 24
2304
4
zář 20
5618
0
čvn 18
3139
0
úno 25
950