View Single Post
  #1  
Old 12-14-2016, 09:34 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Paypal Standard Payment - Multiple Sites IPN

Paypal doesn't support multiple websites for its IPN (1 url per account and they don't allow multiple paypal accounts).

I found this nice little script for a ipn broadcasters

http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/

but the only thing I can't locate is where the paypal ipn.php reference is in X-cart to modify this script. Anyone have any experience in this?

The script is basic. You point the paypal IPN url to this broadcaster script (as a php file on your webserver) and define

Code:
/* List of IPN listener points */ $ipns = array( 'mystore' => 'http://mystore.com/ipn.php', 'myotherstore' => 'http://mybigstore.com/paypal_ipn.php', 'myotherandbetterstore' => 'http://slickstore.com/paypal/ipn.php' );


as your paypal ipn listeners and it will broadcast the ipn to all your stores so that whichever one is valid will receive it and complete the order.
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote