Skip to Content
Menu
This question has been flagged
2 Replies
2323 Views

Hi all,


I am trying to test a Payment Acquirer integration for Payfast with my web site: https://www.lesswatts.co.za.

According to the odoo server log, the base URL resolves to HTTP://www.lesswatts.co.za instead of HTTPS...


When I use Postman to test the two URL variants, the HTTPS-version does result in the correct behaviour, but with HTTP it does not pass any date to the ODOO server.

The base URL is correctly spesified in the Sytem paramaters, and I have added a system vairable  web.base.url.freeze with value "yes" as per a post elsewhere on this forum.


Can someone please assist with possible causes why the base_url returns an HTTP URL instead of a HTTPS URL?


Avatar
Discard
Author Best Answer

Thank you for your response.

It turns out that I had the X-Forwarded_Proto directive misspelt. Correcting the mistake solved the behaviour.

Avatar
Discard
Best Answer

It is important to thoroughly review and verify the name of the service that you have used in your setup
 
1) Reverse proxy configuration: If you are using a reverse proxy like Nginx or Apache to serve your website, make sure that it is configured to forward HTTPS requests to your Odoo instance. You may need to add the X-Forwarded-Proto header to the requests. Check your proxy server's documentation for more information.

2) SSL certificate configuration: Make sure that your website has a valid SSL certificate installed and that it is configured correctly. If the certificate is invalid or expired, some web browsers may default to HTTP instead of HTTPS. You can use an SSL checker tool to verify that your certificate is valid and installed correctly.

3) Odoo server configuration: Check your Odoo server configuration to make sure that it is set up to use HTTPS. You can do this by checking the web.base.url and web.base.url.freeze parameters in the Odoo configuration file. Make sure that web.base.url is set to your HTTPS URL and that web.base.url.freeze is set to True.

4) Cache issue: It's possible that your browser or the Odoo server has cached the HTTP URL and is not updating to the new HTTPS URL. Try clearing your browser's cache and restarting the Odoo server to see if this resolves the issue.

Once you have identified and fixed the issue, test the Payment Acquirer integration again to make sure that it is working correctly with your HTTPS URL.

https://www.odoo.com/documentation/15.0/administration/install/deploy.html#:~:text=workers%20%3D%208-,HTTPS,-Whether%20it%E2%80%99s%20accessed

Avatar
Discard