Forum Moderators: buckworks

Message Too Old, No Replies

Paypal IPN to multiple URLs?

         

erikcw

8:42 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



Hi All,

Does anyone know if it is possible to have PayPal IPN post to a script at one URL, and then have that script post the IPN info to other URLs? (Kind of like IPN Forwarding/redirect). It sounds feasible, but since my expierience with IPN is rather limited, I thought I would ask here if anyone else has tried this. Also, do you know of any scripts that are available that fufill this function?

Thanks!
Erik

dmorison

8:47 pm on Dec 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is certainly possible because the first script that receives the IPN can do what it wants with it.

If you're using PHP, you can install the HTTP_Request [pear.php.net] package from the Pear library, and use it to craft a POST request to the second URL that you want to receive the IPN (copy the variables across using a foreach() on $_POST).

There are bound to be equivalent ways to do it in any server side scripting language - ASP, Perl etc but I don't know of any scripts specifically for this purpose.

Raymond

8:59 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



In ASP, you can do a server post with MSXML. For PHP, if you don't have install permission, you can write your own serverpost with fsock, but it is a little more complicated, and it probably doesn't work in a SSL connection.