X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Paypal Standard Payment - Multiple Sites IPN (https://forum.x-cart.com/showthread.php?t=74792)

GlasPak 12-14-2016 09:34 AM

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.

qualiteam 12-19-2016 05:13 AM

Re: Paypal Standard Payment - Multiple Sites IPN
 
Try this one:
http://[YOUR_DOMAIN]/?target=callback


All times are GMT -8. The time now is 08:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.