News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Paypal for multiple stores - domains

Started by inTroubles, January 18, 2011, 10:05:54 AM

Previous topic - Next topic

inTroubles

Hi there,
i have one paypal account connected to my primary e-commerce, but since i am opening more than one virtuemart e-commerce how i can use the same account for different web sites?
in my paypal settings i see that i can set only one domain.
any tip? thank you  :)

zorkhh

#1
Virtuemart adds the correct URL as Return and Notify to the paypal transaction. I have never tested / used this, but you should try if paypal redirects to the correct shop. If not, you will have to do it on your own...

It's a bit tricky, but you can solve this problem with the .htaccess file in your root directory. We have done something like this for another payment module. Maybe it helps you to figure out how it can work for your site. You will need to identify the correct site from the return URL. In this example, we have made a prefix for the orderid that identifies the shop.

You will have to redirect the notify-url of paypal to the correct site(s):

RewriteCond %{REQUEST_URI}  ^/components/com_virtuemart/notify\.php$
RewriteCond %{QUERY_STRING} ^.*orderid=2_000.*$
RewriteRule ^(.*)$ http://www.yourothershop.com/administrator/components/com_virtuemart/notify.php [R=302,L]
# Ende Notify-Weiterleitung
Virtuemart Professional Support at http://www.vm-expert.com

Visit the large Virtuemart Group on Joomla.org: http://people.joomla.org/groups/viewgroup/30-Virtuemart.html

inTroubles

Hi, thank you for answer,
to be honest i didn't understand your proposed solution, what you mean when you say "You will need to identify the correct site from the return URL" ?
I may mistake in wroting multiple stores, i have different domains names but in the same vps all them use vm, eg: wwww.site1.com, www.site2.com, and so on.
What would be if for each website in payment settings>paypal i specify another paypal email account? (i have 4 in paypal and i can add more 4) the status will not be changed to confirmed after the payment is successfully sent?
I've tried to change the email and maded a fake order, the checkout successfully redirects me to my paypal and i am able to make the payment (i didnt finish the process)
Sorry for all the questions i don't have so much experience in matter.

Thank you very much

inTroubles

I cannot find a solution or make this one suggested to works, actually i have to check manually for each payment then change the status for siteB, siteC.
Anybody has a solution for that?

thank you.

inTroubles

Hi, still looking for a solution.

Thank you.