directing to http://www.sitename.com:446 instead of https:// on express checkout

Started by razauq, October 01, 2010, 22:43:29 PM

Previous topic - Next topic

razauq

I am using the PayPal (new API) module.  It works well until I get to paypal and I either try to cancel or complete order.  It takes me to a URL with:

http://www.sitename.com:446/<etc>

and gives me an error suggesting that I try https://www.sitename.com

I have no idea why it is taking me to 446 and not https:

HELP!!!!


gina

Hi I had this issue too. Here's where the problem is and what I did about it.Let me know if you've got a better fix.

administrator/components/com_virtuemart/classes/payment/ps_paypal_api.php
   
changed this:   $url=dirname('http://'.$serverName.':'.$serverPort.$_SERVER['REQUEST_URI']);

to this:
$url = dirname(SECUREURL.$_SERVER['REQUEST_URI']);