Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
8701 Visualizzazioni

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
Abbandona

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

Autore Risposta migliore

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
Abbandona

where do i need add this configuration?

Autore

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

apache?

Autore

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

Risposta migliore

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
Abbandona
Risposta migliore

Can you post your nginx.conf Ajay?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 24
6701
1
ott 24
2275
4
set 20
5612
0
giu 18
3122
0
feb 25
939