VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: razauq on October 01, 2010, 22:43:29 PM

Title: directing to http://www.sitename.com:446 instead of https:// on express checkout
Post by: razauq on October 01, 2010, 22:43:29 PM
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!!!!
Title: Re: directing to http://www.sitename.com:446 instead of https:// on express checkout
Post by: gina on October 04, 2010, 04:02:04 AM
Same here to port 443
Title: Re: directing to http://www.sitename.com:446 instead of https:// on express checkout
Post by: gina on October 07, 2010, 22:12:42 PM
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']);