News:

Looking for documentation? Take a look on our wiki

Main Menu

PayPal IPN and Multiple VirtueMart Sites

Started by philm, May 11, 2009, 17:55:37 PM

Previous topic - Next topic

philm

Hi

I'm just wondering if anyone can help me please?

I am based in the UK and have a business PayPal account (not PayPal pro, just a standard 'business' account).

Can I set up Multiple IPN's for different sites in my one business account?  I am currently using my IPN for a different script on another website.  Changing the IPN details would prevent this other script from working as it should which I can't really do.

Can I get around this somehow?  I am also about to start building a 2nd Joomla/VirtueMart site straight away and would also like to process payments through this PayPal account.

Please can someone advise me if this is possible, and maybe provide a bit of guidance about how to do it, if it is possible.

I found this topic on a PayPal forum, but it doesn't really make much sense to me:
http://developer.paypal-portal.com/pdn/board/message?board.id=ipn&message.id=8183

If anyone can provide any advice I'd really appreciate it

Many thanks in advance
Phil


freeeze

#1
OK,
I have the same problem, we have two websites and impossible to put two IPN address on one Paypal account.
Paypal developpers told me to simply erase the notification URL on the Paypal account for this!
They have told this line of code send the information once payment has been processed through Paypal : "notify_url" => SECUREURL ."administrator/components/com_virtuemart/notify.php"
!!! FALSE !!!
I have done it but when it's configured as this, hum...when a payment is done via Paypal, the notification is not received by virtuemart!
What to do ?


philm

Hi Freeze

I have found the perfect solution.  It is a script which enables you to use multiple IPN's through your PayPal account - one per email address, so up to eight in total.

It works great - you can read about it (and buy it)here: mydigitaldispatch.com/ipn/

I have four different 'signals' in use now and have not experienced any problems.

I hope this helps!

Phil

freeeze

#3
Hi Phil,
Is it easy to integrate this script with Virtuemart ?
In what language is it written? PHP?
Thanks,
Fred

philm

Hi Fred

It doesn't need to be integrated with VM - it's just a script that you can install in any location, on any domain - it gives you the info to submit to your IPN in PayPal, then when someone makes a payment the script will see which email address you have been paid at, and will re-direct the customer to the url specified in the admin area

It's so easy it's unreal

Cheers
Phil

freeeze

#5
Hello phil,
In fact I need to have two websites(soon three) for one Paypal account, It will be possible for this configuration.
I have to configure the notification URL in this script ?
Like this : http://www.website1.com/administrator/components/com_virtuemart/notify.php , http://www.website2.com/administrator/components/com_virtuemart/notify.php , http://www.websitex.com/administrator/components/com_virtuemart/notify.php.
Thanks for your help,
Fred

philm

Hi Fred

It will work fine with 2 sites, I'm using three different scripts on different domains and it works fine. 

You simply install it anywhere and then, using the admin panel, you can add up to eight email addresses (this is the max PP allows in one account).

The admin panel will tell you what to put in the IPN field in your PP account.  If you have the script installed at www.yourdomain.com, it will tell you to tell PayPal that your IPN setting is www.yourdomain.com//ipn/index.php

Then, if your email address for site 1 is paypal@website1.com you add this email to your PP account and then add it to the script via the admin panel.  You tell the script to redirect all payments made to paypal@website1 to your url:
http://www.website1.com/administrator/components/com_virtuemart/notify.php

The same for website 2.  PayPal email is paypal@website2.com and your return url is http://www.website2.com/administrator/components/com_virtuemart/notify.php

Simply repeat this for up to eight email addresses in your PayPal account.  When PayPal receives the payment it will redirect via your accounts IPN Settings (www.yourdomain.com//ipn/index.php) and will then look at what you have entered into the admin panel for that email.

This all works seamlessly - you do not see this happen - the redirect is instant and it works great!

I use different email addresses for a Virtuemart installation, a ZenCart site and a script that I use with eBay and it works great!

I hope this helps

Cheers
Phil