VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: lanthan on June 29, 2014, 13:31:08 PM

Title: PayPal - Payment Confirmation https:/www problem
Post by: lanthan on June 29, 2014, 13:31:08 PM
Hi there,

VM2.6.6, J2.5.22, PHP5.5

I am using the paypal standard plugin of VM, but do not get the notification back that the payment was successful done even it was. The problem is the following. My SSL certificate works for https://domain.com.

But the URL which is send to Paypal to send the notification is with www

https://www.domain.com/...

This can“t work. It should be send without www in my case. Then it wourld work. Any ideas how I can solve this problem?

Thanks in advance.
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: jenkinhill on June 29, 2014, 13:58:53 PM
Use .htaccess to force both http: and https: to drop the www. in the url. That ought to do it, but not tested.
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: lanthan on June 29, 2014, 14:22:16 PM
Thanks.

I tried this (before) with different rewrites found searching the internet but did not succeed. Unfortunately I am not so experienced with htaccess stuff. I just should have a rewrite from all www.domain.com to domain.com.
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: jenkinhill on June 29, 2014, 14:36:56 PM
This is what I use, but this site does not use PayPal.  Authorize.net works OK with it.  The syntax may not be correct for your server, though.

Options +SymLinksIfOwnerMatch
RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: lanthan on June 29, 2014, 14:46:49 PM
Thanks for your help.

But unfortunately this does not work either. If I use you rewrite rule the website does not show up. I think I have to contact my provicder and ask him to solve this problem.
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: jenkinhill on June 29, 2014, 15:03:41 PM
The real solution is to use a wildcard ssl certificate, or at least one that includes with & without www.
Title: Re: PayPal - Payment Confirmation https:/www problem
Post by: lanthan on June 30, 2014, 17:25:17 PM
:-) Well, I changed my certificated today into a wildcard ssl certifcate.