Magento Forum

   
Unable to make single page ssl secure by use of proxy (relay-script)
 
epay_tk
Sr. Member
 
Avatar
Total Posts:  81
Joined:  2008-04-14
Aalborg
 

Hello Magento developers,

I am a developer of the Danish Payment Gateway ePay. Currently I work on an update for our payment module where the goal is to integrate the payment window within the same layout of Magento. At the moment I have implemented a paypal like payment window which pops up in the payment process.

However I have run into problems with the baseurl of Magento. My test server has the ip 10.10.1.110 and the website is located at http://10.10.1.110/.

In order to fulfill the Danish PCI requirements I have to encrypt the page where the credit card information is entered by SSL. To do so we at ePay have a proxy this fetches the HTML from the webserver and displays it to the user. This also saves the merchant for money as the merchant does not need to buy their own SSL certificate.

In the payment process the URL becomes this:

https://relay.ditonlinebetalingssystem.dk/relay/relay.cgi/http://10.10.1.110/index.php/epay/standard/redirect/

However as the baseurl is http://10.10.1.110/ images, css, javascript etc are all called absolute e.g http://10.10.1.110/js/jsfile.js instead of https://relay.ditonlinebetalingssystem.dk/relay/relay.cgi/http://10.10.1.110/js/jsfile.js.

Is it somehow possible to change the baseurl temporary on the fly in order to load images, js, css and other includes properbly? I can see that the baseurl is loaded from the function getBaseUrl located in the /mage/core/model/store.php file but I would rather not do any modifications to the core files - that would be extremely ugly.

Kind regards

Thomas Knudsen
ePay | Dit Online Betalingssystem
http://www.epay.dk

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top