Possible to POST IPN Script to Two Different URL's?
Posted: Sun Feb 18, 2007 6:54 pm
I'm setting up an affiliate program on my server using affiliate software. In order to track commissions,etc it uses Paypal IPN. You tell Paypal to POST the IPN data to the affiliate script, which then tracks it all.
However, I also need to use IPN data and already have a script written for it - I've been using the script long before I started looking into affiliate programs.
If Paypal POSTs data to the affiliate page, is there a way to tell that affiliate script to send a copy of the data over to my IPN script? I mainly need the variables - I don't need to POST back to Paypal if that has already been completed by the affiliate script.
However, I'm unsure of how to get those variables transferred without any interference. I know you can use a form and POST them, etc. or attach them onto a URL for GET. I don't want to use those methods though - I want it to transfer the values and variables over without the user clicking anything. I haven't tested it yet, but I imagine that the affiliate program script is set up to automatically redirect visitors back to my main site once the script runs. I need to find a way to get the variables to my own script as well.
Is this possible?
However, I also need to use IPN data and already have a script written for it - I've been using the script long before I started looking into affiliate programs.
If Paypal POSTs data to the affiliate page, is there a way to tell that affiliate script to send a copy of the data over to my IPN script? I mainly need the variables - I don't need to POST back to Paypal if that has already been completed by the affiliate script.
However, I'm unsure of how to get those variables transferred without any interference. I know you can use a form and POST them, etc. or attach them onto a URL for GET. I don't want to use those methods though - I want it to transfer the values and variables over without the user clicking anything. I haven't tested it yet, but I imagine that the affiliate program script is set up to automatically redirect visitors back to my main site once the script runs. I need to find a way to get the variables to my own script as well.
Is this possible?